[Glass] GsDevKit and tode debugger

Jon Paynter via Glass glass at lists.gemtalksystems.com
Tue Sep 11 19:38:11 PDT 2018


Hi All,

Im starting a new project with GsDevKit and glass as the backend server.
The idea is to use the seaside REST interface to communicate to my UI layer.

Installation went MUCH better than last time i tried this.  Kudos to Dale
for getting everything running smoothly.  Im running gemstone v 3.2.10

I have a tode client running on my windows PC, which connects to stone
running in a ubuntu VM.  I can write code just fine and see it serve up my
REST calls.  but when it comes to trying to debug anything, its not working.

my expectation is when an exception occurs -- I should see a continuation
in the object log.  instead all I see in the object log is a message saying
topaz has quit.

at first I thought it was due to my choice of error handler in the seaside
config for my rest service. but all of them have the same results.

See attached the zinc_server log file -- I put a 'self halt' in my domain
code.


Also on a (possibly?) related note, I cant figure out how to run arbitrary
code in gemstone from the tode client.  I tried using the 'eval' command
but that always gives me a compile error.  And using the 'do it' option
from within a code browser has no effect.

eval 'Array new' ==>
a CompileError occurred (error 1001), compilation errors -- parameter 1 is
error descriptor
--------------------
1. CompileError(AbstractException)>>_outer:with: @8 line 19
2. CompileError(AbstractException)>>outer @2 line 19
3. [] in UndefinedObject(TDAbstractEnvironment)>>_compileBlock: @9 line 11
4. Array(Collection)>>do: @5 line 10
5. [] in TDStandardEnvironment(TDAbstractEnvironment)>>_compileBlock: @4
line 8
6. CompileError(AbstractException)>>_executeHandler: @3 line 8
7. CompileError(AbstractException)>>_signalFromPrimitive: @1 line 1
8. String>>_compileInContext:symbolList:oldLitVars:environmentId: @1 line 1
9. String>>_compileInContext:symbolList:oldLitVars:environmentId:flags: @2
line 3
10. [] in
UndefinedObject(TDAbstractEnvironment)>>_compile:inContext:literalVars:tempSymbolList:environmentId:
@3 line 5
11. [] in TDStandardEnvironment(TDAbstractEnvironment)>>_compileBlock: @3
line 2
12. TDStandardEnvironment(ExecBlock)>>on:do: @3 line 42
13. TDStandardEnvironment(TDAbstractEnvironment)>>_compileBlock: @3 line 3
14.
TDStandardEnvironment(TDAbstractEnvironment)>>_compile:inContext:literalVars:tempSymbolList:environmentId:
@2 line 3
15.
TDStandardEnvironment(TDAbstractEnvironment)>>compile:inContext:literalVars:tempSymbolList:environmentId:
@2 line 3
16.
TDStandardEnvironment(TDAbstractEnvironment)>>evaluate:in:literalVars:tempSymbolList:environmentId:
@2 line 3
17.
TDTopezServer>>evaluateString:inContext:literalVars:withTempSymbolList:environmentId:
@4 line 5
18. [] in TDShellTool>>eval @6 line 15
19. OrderedCollection(Collection)>>do: @5 line 10
20. TDShellTool>>eval @5 line 11
21. TDShellTool class(TDAbstractDevTool
class)>>performCommand:withSelector:objIn:commandOptions:todeCommand: @14
line 10
22. TDShellTool class(TDAbstractDevTool
class)>>performCommand:objIn:commandOptions:todeCommand: @2 line 3
23. [] in TDShellTool class>>eval @2 line 5
24. TDShellTool class(ExecBlock)>>cull:cull:cull:cull: @7 line 4
25. TDTopezServer>>evaluateCommand:objIn: @18 line 22
26. TDTopezServer>>evaluateSTONCommand: @9 line 6
27. Executed Code
28. GsNMethod class>>_gsReturnToC @1 line 1


Ideas and suggestions on how to solve these would be much appreciated
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20180911/93080815/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zinc_server.log
Type: application/octet-stream
Size: 7879 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20180911/93080815/attachment-0001.obj>


More information about the Glass mailing list