Michael
Michael

Reputation: 157

Is there a way to debug interactively with the C-Spy command line utility?

I have a ST board and I would like to debug it with the C-Spy command line utility. When I launch C-Spy via the generated .bat file in the /settings folder the board is flashed and the program gets executed just fine. The problem is that I am not able to enter any command inside the c-spy utility and control it interactively while debugging.

I read the IAR article about the C-Spy command line utility, but there is no information about breakpoints, or any other debug feature, besides standard output.

Than I read the article about C-Spy command line debugging, which is completly useless, because it says nothing about how to debug with the command line, and finally i read the user manual where there is still no word about setting breakpoints or any other feature which would enable basic debugging.

At that point I am not even sure if you can do debugging with C-Spy on the command line interactively.

Upvotes: 0

Views: 738

Answers (1)

Blue
Blue

Reputation: 887

AFAIK it is not possible to debug with the cspybat command line utility interactively. It is possible to make use of the C-SPY macro language to automatically set and modify breakpoints etc. as specified by a script.

The IAR article Introduction to debugging with C-SPY macros looks like a good starting point.

cspybat accepts script files using the command line argument --macro filename.

Upvotes: 1

Related Questions