I've read that it's possible to use Visual Studio to debug a Debug version of your extension. This is apparently supposed to get which line of code is responsible for a crash in the runtime. How do you use this debugger?
Thanks in advance. :)
Printable View
I've read that it's possible to use Visual Studio to debug a Debug version of your extension. This is apparently supposed to get which line of code is responsible for a crash in the runtime. How do you use this debugger?
Thanks in advance. :)
It's explained in the extension SDK's help file (under 'Create your extension step by step').
I am using rSDK, though. Does everything still apply?
The debugging part does.
I did everything stated in the help file, although I don't really understand how it's supposed to help. When I press F5 as it says to do, it says that edrt.exe "was not built with debug information." But it lets me dismiss the message and it appears to continue running. Because my extension crashes the runtime on startup, it comes up with a box saying that there was an exception, and I eventually have to press the Stop button in Visual Studio.
But among all the generated lines of text, I can't really find anything useful.
Visual Studio should stop at the line that it crashed. You can then inspect the value of variables, etc.
I am having the same problem as Jaffob. It also does not show any information about what line it was on.
What do you mean by "Stop"? Is there some window that displays which line Visual Studio is currently on, and will stop doing so in the event of a crash?Quote:
Originally Posted by Jamie
Sorry for asking so many questions, I've just never debugged anything in Visual Studio before.
Look at a window called "call stack" among debugging windows.
Works for me. Just follow the instructions in the help file and make sure you build the debug version of your extension.
And make sure it's the debug version of your extension in the MMF extensions directory...
What goes in to Data\Runtime\ ?
The runtime version of your extension. It will be used when your application is built. But when testing in MMF, edrt will use the extension in the \extensions directory.