Hello, I would like to automatize my tests. For this, I am calling the Keil debugger via the dll. In my program I use debugger variables. The problem is that between 2 runs, already defined variables/breakpoints/watchpoints/functions are not cleared. I found how to remove watch and breakpoints, also functions. But, no way to remove a variable!? More generally, is there a way to be sure to have a clean environment? Delete project.uvgui.username????? (seems violent to me...)
Regards, Gelika
Hi,
where exactly is a variable shown?
There are commands to remove breakpoints, variables from the watch windows, and a lot more. For example this: http://www.keil.com/support/man/docs/uv4/uv4_cm_watchkill.htm
We would need to understand what exactly is restored that you do not want?
Testing forum post; please disregard.
Scott,
we need to know which version of the tools you are using and what target debugger is connected.
I have not seen that the #define variables are restored when a debug session is started. So far, I was unable to duplicate your issue.
How do you start the debugger in your Phyton script?
Hello, So, meanwhile I reinstalled completely the toolset (5.16a, which I was already using but from another drive). Looks like having the installation on one drive and the working data on another is messing up everything in Keil. I also changed the way of starting the debugger. It looks like now, this issue is solved: no more variables when the debugger is started.
In my opinion it could be worth for Keil investigating these drive issues because it's not very comfortable to re install the toolset each time a new project is on another drive...
Gelinka,
we have many projects that are not on the same drive as the MDK installation itself.
This should be a specific problem in your setup. What errors did you got?
Reinhard
I normally use "system drive" and "data drive" with no issues seen.
View all questions in Keil forum