debugging

xcode debugging - quickly step over assembly code back to my custom code

丶灬走出姿态 提交于 2020-01-12 09:13:51
问题 I'm still new to xcode. I have "show disassembly when debugging" UNCHECKED but I know that as I step through my own code that I will still regularly be thrown into assembly code when system methods are called. My question is ...... Is there any way to quickly step over the assembly code to the NEXT line of my own custom code rather than endlessly hitting F6 or F8. I know that, in advance, I can set a new breakpoint at the next custom method to be called and press the run button, but when I

Call jQuery from javascript console when using JSFiddle

耗尽温柔 提交于 2020-01-12 09:08:33
问题 It's typical in my debug and creation process to fire off a few jQuery commands from the javascript console (firebug in firefox or chrome's built-in) just for inspection and testing purposes. I've noticed that I'm unable to interact with any elements in the page on JSFiddle using the jQuery() call, and that $() doesn't behave normally either (I'm guessing it's bound to mootools or X other framework?) Looking at the list of scripts used on the page tells me that the jQuery library is loaded.

C++ single step in debugger throws an exception

落爺英雄遲暮 提交于 2020-01-12 08:48:42
问题 I have a C++ app that will throw an exception when I try to single step from a breakpoint. For example: 1) Start app from VS2010 0 debugger is attached. 2) Set a breakpoint. It doesn't seem to matter where. 3) Do something in the app so that it hits the break point. ** VS2010 hits the break point 4) Single step the debugger to the next line of code. VS2010 pops up a message box with this exception: "Unhandled exception at 0x087df66f in SimpleGraphSDI.exe: 0xC0000005: Access violation." Note

C++ single step in debugger throws an exception

北城以北 提交于 2020-01-12 08:48:11
问题 I have a C++ app that will throw an exception when I try to single step from a breakpoint. For example: 1) Start app from VS2010 0 debugger is attached. 2) Set a breakpoint. It doesn't seem to matter where. 3) Do something in the app so that it hits the break point. ** VS2010 hits the break point 4) Single step the debugger to the next line of code. VS2010 pops up a message box with this exception: "Unhandled exception at 0x087df66f in SimpleGraphSDI.exe: 0xC0000005: Access violation." Note

Debugging tests with delve

有些话、适合烂在心里 提交于 2020-01-12 07:29:11
问题 I'm using "go test -v " to run bunch of unit tests. I'd like to debug them using delve. When I try to run debugger, I get an "Can not debug non-main package" error. So, how can I debug unit tests using delve debugger ? 回答1: Use dlv test: $ dlv test -- -test.v Type 'help' for list of commands. (dlv) continue === RUN TestReadFileError --- PASS: TestReadFileError (0.00s) === RUN TestReadFile --- PASS: TestReadFile (0.00s) [..] PASS Process 8014 has exited with status 0 (dlv) quit Process 8014

In a Java debugger, how to ignore exceptions never passing through my code

陌路散爱 提交于 2020-01-12 05:42:05
问题 I'm currently using IntelliJ IDEA for Java development, but I'm also interested in answers targeting other IDEs or general concepts for debugging Java code. Because this is a feature I've missed in a number of IDEs, I'm unsure if I've missed a workflow concept when transferring my debug habits from other languages. Let's say I'm writing some code in myapp.* while using framework classes from somelib.* . A typical stack trace may start in either package and may switch several times between

What's the best way to log debug info in an iphone app?

空扰寡人 提交于 2020-01-12 03:27:11
问题 Is there some standard way or has anyone written something that allows you to log a message and have it be displayed either in a small scrolling section on the iphone screen or in a separate window in the iphone simulator? Update: For noobs like me and don't know, use the NSLog methods as decribed below and make sure you select Run->Console to display the console. Would still like to know if anyone has written a simple logger that displays on the iphone itself.... 回答1: The Objective-C (more

Debugging shell extension in Windows 7

怎甘沉沦 提交于 2020-01-12 03:16:23
问题 I'm trying to debug shell extension (IContextMenu) in Windows 7 with Visual C++ 2008. I have set DesktopProcess=1 in the registry and set host app to explorer.exe. But when I start the debugger, it launches explorer.exe and then detaches from the process. DllMain of the shell extension isn't called. The same code with exactly the same settings launched in debugger without any problems in Windows XP + Visual C++ 2008. Any thoughts how to debug the shell extension in Win7? 回答1: Try launching

DotPeek PDB generation for assemblies without debug directory

谁说我不能喝 提交于 2020-01-12 03:16:11
问题 I'm attempting to use JetBrains dotPeek 1.4 symbol server however I've encountered some 3rd party assemblies that fail, with dotPeek status of: Pdb has not been generated because assembly does not contain debug directory Using CFF Explorer I've discovered that these assemblies have empty "Debug Directory" Portable Executable (PE) header values. Is there an (easy) way to edit the PE to add Debug Directory header values? 回答1: de4dot creates invalid .net executable module in the eyes of dotPeek.

Debugging shell extension in Windows 7

青春壹個敷衍的年華 提交于 2020-01-12 03:14:06
问题 I'm trying to debug shell extension (IContextMenu) in Windows 7 with Visual C++ 2008. I have set DesktopProcess=1 in the registry and set host app to explorer.exe. But when I start the debugger, it launches explorer.exe and then detaches from the process. DllMain of the shell extension isn't called. The same code with exactly the same settings launched in debugger without any problems in Windows XP + Visual C++ 2008. Any thoughts how to debug the shell extension in Win7? 回答1: Try launching