Debugging wxLua programshttps://www.eclipse.org/forums/index.php/mv/msg/275941/778505/#msg_778505
I am trying to debug wxLua program using LDT. The 1st thing I had to do is to change the extension from wlua to lua for proper syntax highlighting to work properly. Another thing is that during debugging the breakpoint doesn't show on the source. That is if the program is halted at a particular line it doesn't show in the code window, it tries opening a new window and that window is blank saying

dbgp source lookup

and nothing else.

Single stepping and breakpoints all work but the only indication of the position is the line number displayed in the debug window and the changing variables in the watch window.

I even changed the extension to .lua but still the same problem. Only thing is that to launch the wxlua script I have to use the wxlua executable instead of the lua executable, is this causing this problem?

Thanks,
Milind]]>Milind Gupta2012-01-12T22:35:35-00:00Re: Debugging wxLua programshttps://www.eclipse.org/forums/index.php/mv/msg/275941/778510/#msg_778510
What is the command line you are using to launch your program?

Regarding the wlua extension, isn't the default extension for wxLua programs ".wx.lua"?]]>Benjamin Cabé2012-01-12T23:18:10-00:00Re: Debugging wxLua programshttps://www.eclipse.org/forums/index.php/mv/msg/275941/778513/#msg_778513
At the command line I was typing this:

wxlua -e "require('debugger')()" Prog.lua

The extension was .wx.wlua, I changed it to .wx.lua to make highlighting work then I changed it to just .lua to see if debugging worked.
Then I did some more testing. It seemed that it did not like the path of my program. The program was deep in a directory and it was not inside a src directory. Now I shifted it to the default workspace in the src directory as a new Lua project is created and it is working now. I still have to see if its the src directory thing or a deep path that causes the problem.]]>Milind Gupta2012-01-13T00:07:07-00:00Re: Debugging wxLua programshttps://www.eclipse.org/forums/index.php/mv/msg/275941/778516/#msg_778516
Milind Gupta2012-01-13T01:01:12-00:00Re: Debugging wxLua programshttps://www.eclipse.org/forums/index.php/mv/msg/275941/791995/#msg_791995
I test our debugger with a wxlua vm with my windows 7, and I'm not able to add breakpoint.
I open a bug.
Can you reproduce your problem when you check "break on first line" in your debug configuration?
Simon.]]>Simon Bernard2012-02-06T13:49:46-00:00Re: Debugging wxLua programshttps://www.eclipse.org/forums/index.php/mv/msg/275941/792991/#msg_792991
bug should be fixed now. (I test it under windows and I'm able to debug the dialog.wx.lua sample)

Hope this will help
]]>Simon Bernard2012-02-07T16:42:43-00:00Re: Debugging wxLua programshttps://www.eclipse.org/forums/index.php/mv/msg/275941/891770/#msg_891770
Strangely after all this time I am again having that same problem:

Quote:

during debugging the breakpoint doesn't show on the source. That is if the program is halted at a particular line it doesn't show in the code window, it tries opening a new window and that window is blank saying

dbgp source lookup

and nothing else.

Single stepping and breakpoints all work but the only indication of the position is the line number displayed in the debug window and the changing variables in the watch window.

Now the code only seems to work if the code directory is in the root path! I downloaded and installed the most recent LDT and also the Debugger files but still the same problem. I am not sure what changed suddenly since everything was working fine just a day back.]]>Milind Gupta2012-06-25T20:31:18-00:00Re: Debugging wxLua programshttps://www.eclipse.org/forums/index.php/mv/msg/275941/892221/#msg_892221
This is weird... Can you please open a bug so as we can have a look? Please also include the version of LDT you are using.