Old blogs

Moving the Program Counter

General - April 30th, 2008 - Written by Ken Ryall

CodeWarrior had a nifty feature where you could drag the program counter arrow up and down in the editor while in a debug session. This is a very powerful and very dangerous feature that people have been asking for in Carbide.

You can do something similar in Carbide by using the Resume At Line command (in the Run menu or the context menu when you click in the editor). This will move the program counter to that line and resume execution. So this works like the CodeWarrior feature except for the “resume” part. Carbide will automatically resume after moving the PC location instead of giving you the option to step etc.

I’d like to improve this feature in a future version of Carbide but for now the best work around I can think of is to set a breakpoint at the desired new PC location and then do the Resume At Line command on the line before that. Far from ideal but it will give you the option to step without auto resuming.

About the author Ken Ryall

  • Number of posts: 26

Comments are closed.