Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 635 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: breakpoint keyword not recognized by SED [Re: Tobias] #210625
06/11/08 19:08
06/11/08 19:08
Joined: May 2008
Posts: 123
B
BES Offline OP
Member
BES  Offline OP
Member
B

Joined: May 2008
Posts: 123
When I use F9 to add a breakpoint in a callback function written in SED in another module than my main.c, it never breaks in that function- is there any way to do this?

Re: breakpoint keyword not recognized by SED [Re: BES] #210632
06/11/08 20:06
06/11/08 20:06
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
debugging has never worked correctly for me with sed. i've always used beep, sys_exit or log panels to debug my code and i've done well so far. but i'm interested in this question, too: how to use breakpoints in sed?

Re: breakpoint keyword not recognized by SED [Re: Joey] #210666
06/12/08 06:22
06/12/08 06:22
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Hmm, I use debugging all the time regardless if the module is main.c or not, and have not found problems other than limits to the watch list. For instance you can't watch whole structs, only struct members. Also you should restart SED after a debug run. But when you still have other problems maybe the best way to solve them is posting in Ask Conitec and explaining your problem.

Re: breakpoint keyword not recognized by SED [Re: Tobias] #210681
06/12/08 09:22
06/12/08 09:22
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
I recently discovered this issue as well..

A6 has always supported breakpoint; but A7 doesnt.
It's true you now use F9, but keep in mind, this has to be on a line that is being executed (not initialised, so no variables), this means you cant add it on a blank line, but it has to be "attached" to some code...
also make sure you DEBUG run (ctrl + F5) rather then normal run (F5), all should work properly then!

the manual also stated something like writing //! as a breakpoint, but im not sure about that...

make sure you use F10 to go through the code, ctrl+F10 to continue normal testing untill the next breakpoint in your code, or escape to stop debugging untill the next run..

I hop this made it a bit more clear, if not, just ask ^_^

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: breakpoint keyword not recognized by SED [Re: Helghast] #210788
06/12/08 21:48
06/12/08 21:48
Joined: May 2008
Posts: 123
B
BES Offline OP
Member
BES  Offline OP
Member
B

Joined: May 2008
Posts: 123
I've been doing all those things, but I'm grateful for the response- I think you're wise not to assume that people are familiar with even fundamental things.


Quite baffling that the breakpoints in functions I call from other modules don't get hit unless I single step into the function first. Not really harmful, other than wasting my time, except when I'm testing a triggered event or callback which I can't step into from main. So far, in those cases, I've just been calling the function explicitly from main for testing.

Is it normal that my watch list isn't able to view a variable's value unless it is declared outside the function (i.e. not locally)? Again, not really harmful, but kind of a pain.

Cheers to you all!

Re: breakpoint keyword not recognized by SED [Re: BES] #210841
06/13/08 10:15
06/13/08 10:15
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Yes, watch only works with global variables.

F9 breakpoints work in all modules, but if I remember right the A5 "breakpoint" commands worked indeed in the main script only.

Re: breakpoint keyword not recognized by SED [Re: Tobias] #210855
06/13/08 12:33
06/13/08 12:33
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
ok, thanks for clarifying.

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1