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.
Hello Reinhard, My reinstalling the toolset is related to other issues, one of them being the "search in files" feature for which I opened a ticket in the support tool some time ago. Another one was a problem of editing a file from the project, with another editor (also opened a ticket): in my installation there was no reload of the file and then no recompilation of the project. Even worse, if the file was open in the Keil editor, the file was overwritten and I lost my changes... Both issues were not reproducible at Keil, and I can't send my source code. My colleague using the same files has no issues anyway.
Now it may well be that the issues are linked to a specific project, which somehow got broken when I copied it from a colleague instead of creating it myself (same code but different computer types). At this point I was not yet able to find the time to recreate the projects from scratch. What is for sure is that I lost the "uvision" icon during this reinstallation, so there is still something broken. I'm lost. "it's commpiling, it's running on the board"-> I gave up debugging my installation. But yes, everything tends towards some windows or install or configuration issue...
Do you and your colleague edit these files across a network? And are the times synchronized across ALL machines properly?
Hello, Apart from the moments where we version our code, all files and installation are local to each computer, also the licensing is somehow node-locked (it's not a network license)
So, if there ever is a timing problem, it's only when doing a "git push", which I haven't done recently...
View all questions in Keil forum