debugging

Can I not debug the ITestExecutor methods in a unit test adapter?

落花浮王杯 提交于 2019-12-24 16:11:07
问题 Using the sample project from MSDN, I'm writing a custom unit test adapter. I'm able to debug it with the experimental instance in visual studio, set breakpoints, and see System.Diagnostics.Trace.WriteLine() output, and it all works beautifully for almost all of my methods. I can see evidence that it's working (as in the outputs of the test cases are what I expect if I fiddle with the error message, duration, etc). However, for the methods in my test executor class (deriving from Microsoft

Debugging Rubymine - only debug project files?

久未见 提交于 2019-12-24 15:52:27
问题 I've been using RubyMine and like it a lot so far. Is there any way to only step through my project files? When I click "Step Over" or "Step Out" I'm taken into framework and library files, which I don't need to look at. 回答1: RubyMine doesn't currently have this feature; here is the relevant enhancement request. 来源: https://stackoverflow.com/questions/7732660/debugging-rubymine-only-debug-project-files

ClrMd - ClrInfo TryGetDacLocation and other method missing?

↘锁芯ラ 提交于 2019-12-24 15:48:04
问题 I am trying out the ClrMd Library : https://github.com/Microsoft/clrmd And I have this issue, according to the first tutorial I have a method called TryGetDacLocation in ClrInfo type, but as I can find it in it... I can see that Dac location are generated automatically inside the Clrinfo but as I am trying to call runtimeInfo.CreateRuntime(); I am getting: "Mismatched architecture between this process and the dac" The dump and the running process are of the same - 32bit architecture. I don't

Debugging Python Instagram API client - 'NoneType' has no len()

余生颓废 提交于 2019-12-24 15:33:02
问题 newbie to Python here, so bear with me... I'm trying to use the Python client for Instagram API, and am entering a valid access token and user ID when passing the token into the InstagramAPI constructor (yes, I'm running the code with my access token and user ID inserted, but left out for posting the question): from instagram.client import InstagramAPI access_token = "YOUR_ACCESS_TOKEN" api = InstagramAPI(access_token=access_token) recent_media, next_ = api.user_recent_media(user_id="userid",

Killing child processes when debugging ends

一世执手 提交于 2019-12-24 15:25:36
问题 I have a C++ project in Visual Studio 2008 that, when executed, spawns another process (due to a GUI library that is being used). However when I exit the main process (either using Ctrl-C or by stopping the debugger), the spawned process (and hence the GUI) remains. This is a side-effect of the library being used, and the nature of the project - it is designed to be embedded, and hence never really "exit", but debugging and testing is Windows-based. The orphan process then stops me being able

Killing child processes when debugging ends

喜欢而已 提交于 2019-12-24 15:17:05
问题 I have a C++ project in Visual Studio 2008 that, when executed, spawns another process (due to a GUI library that is being used). However when I exit the main process (either using Ctrl-C or by stopping the debugger), the spawned process (and hence the GUI) remains. This is a side-effect of the library being used, and the nature of the project - it is designed to be embedded, and hence never really "exit", but debugging and testing is Windows-based. The orphan process then stops me being able

IntelliJ Idea JavaFX debugging issue

谁说胖子不能爱 提交于 2019-12-24 15:08:34
问题 Debugging in IntelliJ idea for JavaFX has been a pain for me. Mainly because when I setup a breakpoint, IntelliJ will just show me all the backend class files that I don't care about. Is there a way to stop it from happening? I've tried stepping over but that doesn't work. Here's an example of what happens when I debug a getText() method. http://i.stack.imgur.com/9zSoX.png Any help? 回答1: You can add a breakpoint after the method and use f9 (resume program) so intellij skips the method you

VB.NET Call Stack in Microsoft Visual Studio - Wrong Line of Source Highlighted?

扶醉桌前 提交于 2019-12-24 14:36:07
问题 I seem to be having an issue using the call stack viewing functionality of Microsoft Visual Studio 2010 Professional. During debugging, my application crashed, so I inspected it with the call stack view. The offending line was contained within called showInDGV(...) nothing exciting, just trying to read an uninitialized variable or something... All well and good, so next thing I did was check to see where the call to showInDGV() was coming from, because it is called from multiple places. When

Cannot break on jquery.validate callbacks

半腔热情 提交于 2019-12-24 14:13:52
问题 I'm using Firefox/Firebug, trying to step through some of the jquery.validate() callbacks. Why do breakpoints on the below // Breakpoint lines not trigger upon clicking the submit button? <!DOCTYPE html> <head> <script type="text/javascript" src="/library/scripts/lib/jquery-1.7.2.js"></script> <script type="text/javascript" src="/Scripts/jquery.validate.js"></script> <script type="text/javascript" src="/Scripts/jquery.validate.unobtrusive.js"></script> </head> <body> <form action="/" method=

Can I use WinDbg to dump structs for other platforms?

风流意气都作罢 提交于 2019-12-24 14:10:59
问题 I'm using WinDbg to dump struct information, for example: lkd> dt nt!_LIST_ENTRY +0x000 Flink : Ptr32 _LIST_ENTRY +0x004 Blink : Ptr32 _LIST_ENTRY The example above shows the 32-bit version of the _LIST_ENTRY struct. The 64-bit version is larger, with Blink at 0x008 . I understand that I can debug remote systems or analyze crash dumps, as long as I load the correct symbols for those Windows versions. My question: Is it possible to dump structs for different Windows versions than the one I am