Four Js Development Tools Forum

Discussions by product => Genero Studio => Topic started by: Nuno T. on September 23, 2014, 04:51:49 pm



Title: debug after ui.Window.getCurrent
Post by: Nuno T. on September 23, 2014, 04:51:49 pm
Hi,

If i do breakpoint after one  ui.Window.getCurrent() the program hangs.

Exemple code:

FUNCTION test()

  DEFINE result              SMALLINT
  DEFINE mywin               ui.Window
  DEFINE myform              ui.Form

  OPEN WINDOW wfdMain WITH FORM "testform"

    LET result = -1
BREAKPOINT 
    LET mywin  = ui.Window.getCurrent()
BREAKPOINT
    LET myform = mywin.getForm()
BREAKPOINT
    LET result = 5
BREAKPOINT

CLOSE WINDOW wfdMain

END FUNCTION

After my first breakpoint the program works fine, and in my data window i can see User, Local, Module and Global variables values.
If i do next breakpoint twice, the program hangs and all the debug menu buttons next,step into, step out, continue are disabled, only the interrupt buton remains activ but it does nothing.


Can someone help on this, please.



Title: Re: debug after ui.Window.getCurrent
Post by: Romain W. on September 23, 2014, 05:58:58 pm
Hi,
This is a known issue, currently filed as #GST-5948. Will be fixed in next version.
For now, you can go on debugging from the 'Command' panel, but you have to enter the debugger commands manually.
Best regards,
Romain W.