debugging

Can I commit changes to actual database while debugging C# in Visual Studio?

余生颓废 提交于 2019-12-28 07:05:06
问题 I am creating a C# application using Visual Studio that uses an SQLExpress database. When I hit f5 to debug the application and make changes to the database I believe what is happening is there is a copy of the database in the bin/debug folder that changes are being made to. However, when I stop the debugging and then hit f5 the next time a new copy of the database is being put in the bin/debug folder so that all the changes made the last time are gone. My question is: Is there a way that

How to debug .class files in ECLIPSE?

旧巷老猫 提交于 2019-12-28 06:34:28
问题 I am using Eclipse 3.5 and I attached the src.zip to my global settings in Eclipse. Windows--> Preferences -->Java -->Installed JREs -->rt.jar - Source attachment - ...../jdk/src.zip I am successfully able to step in the java core library .class files and view the source code. I building a Class which uses the LinkedList and I have set a breakpoint inside the LinkedList class. When I debug the breakpoints in my source code (my projects) are working good but when I need to step into the java

Freeing memory allocated in a different DLL

喜欢而已 提交于 2019-12-28 06:33:06
问题 I have an EXE file using a DLL file which is using another DLL file. This situation has arisen: In DLL file 1: class abc { static bool FindSubFolders(const std::string & sFolderToCheck, std::vector< std::string > & vecSubFoldersFound); } In DLL file 2: void aFunction() { std::vector<std::string> folders; std::string sLocation; ... abc::FindSubFolders(sLocation, folders) } In release mode, everything works fine. But in debug mode, I come up with an assertion failure in the destructor of one of

Problem with bluetooth on android 2.1 (samsung spica i5700) where pairing works but connection does not work

为君一笑 提交于 2019-12-28 06:24:19
问题 I have a Samsung Spica i5700 which I already have updated to Android 2.1. I am using the phone with an application called Run.GPS (http://www.rungps.net). This application logs data such as GPS position, route, speed, bearing etc. It can also log heartrate provided the user has a Zephyr HxM bluetooth heart rate monitor ("HxM"), which I do have. I can pair the HxM to the phone through the standard bluetooth utility. I'm prompted for the PIN, which I enter and the device is shown as 'Paired but

Find out what variable is throwing a NullPointerException programmatically

二次信任 提交于 2019-12-28 05:50:10
问题 I know I can find out if a variable is null in Java using these techniques: if (var==null) -> too much work try { ... } catch (NullPointerException e) { ...} -> it tells me what line is throwing the exception using the debugger -> by hand, too slow Consider this line of code: if (this.superSL.items.get(name).getSource().compareTo(VIsualShoppingList.Source_EXTRA)==0) { I would like to know if there's a generic way to find out programatically what variable (not just the line) is throwing the

How to print Core Data debug values?

时光怂恿深爱的人放手 提交于 2019-12-28 05:38:12
问题 How can I print the values being sent to the sqlite database while using Core Data SQL Debug? Using the " -com.apple.CoreData.SQLDebug 1 " in my " Arguments Passed on Launch " debug options prints the SQL structure just fine (you can check see how to use this here: XCode4 and Core Data: How to enable SQL Debugging) But the problem is that the NSLog printed is something like UPDATE ZTABLE SET ZCOLUMN = ? WHERE ZID = ? and it does not help at all if you are trying to see what is the full SQL

How to use VB6 debugger on Outlook property page OCX?

社会主义新天地 提交于 2019-12-28 04:33:14
问题 Using VB6, I have created an Outlook plugin, that has a property page. The property page is an OCX control. When I compile the project to an OCX file, and then run OUTLOOK, things work fine: I am able to see my OCX as a tab in the Outlook options. However, when I try to debug by running the OCX in VB6 I get an error. My debugging is started like this: 1) Debug options set to Wait for components to be created" 2) F5-RUN project in VB6. 3) Start Outlook. 4) Get the error: "Cannot display "MyOcx

Breakpoint at exception in Eclipse - how to examine Exception object?

强颜欢笑 提交于 2019-12-28 04:01:09
问题 I feel like I'm missing something very simple here. I have Eclipse set up to break on all exceptions. So, let's say that it breaks on an AssertationFailedException. The Debug window will show that thread suspended and has the following data: Thread [Thread-1] (Suspended (exception AssertionFailedException)) ContactManager.addContact(String) line: 93 ContactManager$ContactDataCallback.dispatch(String, Element, ClientConnector) line: 118 PacketHandler.handle(FractusPacket) line: 173

How to debug (only) JavaScript in Visual Studio?

笑着哭i 提交于 2019-12-28 03:42:25
问题 I'm developing a webapplication (asp.net mvc 4) with Microsoft Visual Studio 2012, and as the solution is getting bigger, the debug is getting slower. Need to know if there is a way to debug only my client side (javascript) on visual studio instead of the entire application (server+client). Is there any way to attach to process of IE and get the breakpoints working ....? Not interested on get the debugger running on entire client/server application, just client . 回答1: First open Visual studio

Can I use GDB to debug a running process?

风流意气都作罢 提交于 2019-12-28 03:20:53
问题 Under linux, can I use GDB to debug a process that is currently running? 回答1: Yes. Use the attach command. Check out this link for more information. Typing help attach at a GDB console gives the following: (gdb) help attach Attach to a process or file outside of GDB. This command attaches to another target, of the same type as your last " target " command (" info files " will show your target stack). The command may take as argument a process id, a process name (with an optional process-id as