[Glass] tode and breakpoints and debugging.

Jon Paynter via Glass glass at lists.gemtalksystems.com
Sun Oct 25 18:56:34 PDT 2015


that returns true.  So I guess native code is turned on.

On Sun, Oct 25, 2015 at 6:51 PM, Mariano Martinez Peck <
marianopeck at gmail.com> wrote:

>
>
> On Sun, Oct 25, 2015 at 10:42 PM, Jon Paynter <kittle31 at gmail.com> wrote:
>
>>
>> On Sun, Oct 25, 2015 at 6:06 PM, Mariano Martinez Peck <
>> marianopeck at gmail.com> wrote:
>>
>>>
>>>
>>> On Sun, Oct 25, 2015 at 9:41 PM, Jon Paynter via Glass <
>>> glass at lists.gemtalksystems.com> wrote:
>>>
>>>>
>>>> Im trying to debug some seaside code - when I try to set a break point
>>>> in my method, and run the method from a browser -- nothing seems to
>>>> happen.  I dont get a message in the browser and I cant see anything
>>>> related in the object log.
>>>>
>>>> to set the method breakpoint, I navigate to the method in the hierarchy
>>>> browser, right click & pick 'set breakpoint'.
>>>> Are method breakpoints working in tode?
>>>>
>>>>
>>> Just for the record, do you have native code enabled? Also, which OS?
>>>
>>
>> Not sure on the native code.  its probably whatever tode defaults to.
>> Host os is windows 7 -- where pharo runs.   Gemstone/glass is running in an
>> ubuntu 12.04 VM.
>>
>
>
> You can get it yourself by executing 'GsProcess usingNativeCode'.
>
>
>
>>
>>
>>>
>>>
>>>>
>>>> Next I tried the old school "self halt" in my code.  That gave a
>>>> message in the browser, and I was able to see the continuation in the
>>>> object log, and start a debugger.  However I found all the debug related
>>>> options (step over, step into, continue, restart) -- were greyed out.   I
>>>> tried modifying the method i want to debug (sometimes that will get things
>>>> going), but that didnt work either.
>>>>
>>>
>>> As far as I know, it's not possible to proceed and friends from a stored
>>> continuation.
>>> There was a way of doing this in GemTools, which was opening the web
>>> adaptor directly from GemTools (not on a separate gem) and that would
>>> prompt a debugger which you were able to restart, proceed, etc.... Of
>>> course, GemTools looked like "freeze" while the seaside adaptor was running
>>> since it was using same gem.
>>>
>>> That being said, I never used breakpoints (always #halt), so I don;t
>>> know.
>>>
>> Well thanks for the reply.  hopefully Dale can shed some light on things
>> on Monday
>>
>>
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20151025/3a3b6d99/attachment-0001.html>


More information about the Glass mailing list