step-into

C# app to act like WINDBG's “step into” feature

£可爱£侵袭症+ 提交于 2019-12-11 02:06:46
问题 I do a lot "academic" security projects mostly targeted at Linux platforms but recently I've had some interest in Windows. So what I'm I've done is make some small tools like an app to crash other apps and such, just to provoke behavior. So I've had to use WINDBG a lot for stepping through processes, which is been pretty useful, way cooler than GDB(linux). So the tool I'm trying to make now is essentially just like the stepping feature in WINDBG. What I can do is launch a process as a System

Stepping into a P/Invoke call in disassemby view

流过昼夜 提交于 2019-12-09 08:59:12
问题 My C# code is calling an unmanaged third-party library function via P/Invoke, and the unmanaged function is having some strange side effects. I want to debug into it and see what it's doing. If I debug my C# code, and try to "Step Into" the P/Invoke call, it steps over instead. No surprise there -- I expected that; it doesn't have the source for this DLL, and I didn't tell it I was okay with seeing the disassembly view. So I switch the debugger to disassembly view (Debug > Windows >

How do I step through Cordova code when the app starts?

房东的猫 提交于 2019-12-06 20:47:45
When I debug a Cordova app what I constantly do is step through its code inside Chrome's WebInspector. In order to be able to do this, however, I have to wait for the device to become ready in chrome://inspect/#devices (only then can I click on the appearing link for the started app). But if I do this the inspector will not halt on breakpoints if I am not quick enough. How do experienced Cordova developer tackle this issue? Additionally to frank's comment I just found GapDebug which offers instant debug and, thus, comes close to what I deserve. 来源: https://stackoverflow.com/questions/28046814

Debug custom dll that is being referenced in visual studio macro

我是研究僧i 提交于 2019-12-03 17:41:48
问题 I previously asked: Add dll reference to visual studio macros the idea of creating the macros in my language (C#) makes it easier to create the macros. The problem is that I cannot debug the dll To solve the problem I have tried: I placed myClassLibrary.pdb next to myClassLibrary.dll hoping I where going to be able to debug the methods in the dll by steping in to them. Created a WCF service. Because I did not knew how to reference the service from vba I reference it from the class library.

Stepping into a P/Invoke call in disassemby view

一个人想着一个人 提交于 2019-12-03 11:38:55
My C# code is calling an unmanaged third-party library function via P/Invoke, and the unmanaged function is having some strange side effects. I want to debug into it and see what it's doing. If I debug my C# code, and try to "Step Into" the P/Invoke call, it steps over instead. No surprise there -- I expected that; it doesn't have the source for this DLL, and I didn't tell it I was okay with seeing the disassembly view. So I switch the debugger to disassembly view (Debug > Windows > Disassembly). Now I see the individual x86 instructions in my JITted code. Again I try to step into the P/Invoke

Debug custom dll that is being referenced in visual studio macro

試著忘記壹切 提交于 2019-12-03 07:27:11
I previously asked: Add dll reference to visual studio macros the idea of creating the macros in my language (C#) makes it easier to create the macros. The problem is that I cannot debug the dll To solve the problem I have tried: I placed myClassLibrary.pdb next to myClassLibrary.dll hoping I where going to be able to debug the methods in the dll by steping in to them. Created a WCF service. Because I did not knew how to reference the service from vba I reference it from the class library. The problem is that I need to use variables such as DTE.ActiveDocument and those variables are not

Enable and disable “Step into” debugging on certain project in a Visual Studio solution

牧云@^-^@ 提交于 2019-11-30 11:02:06
I have a Visual Studio solution with four C# projects in it. I want to step into the code of a supporting project in the solution from my main project, but when I use the "Step into" key, it just skips over the call into that other project. I've set breakpoints in the supporting project, and they're ignored, and I can't for the life of me get it to step into any references to that project. Everything is set to compile as "Debug", and I've seen Visual Studio warn me that my breakpoints won't be hit before - it doesn't do that in this case. It's as though it looks as though my code will debug,

Eclipse step into debugging

孤者浪人 提交于 2019-11-28 10:20:34
I just put eclipse on my laptop, and when I use the Step Into debugging tool, it doesn't just take me to the next part of my code. An example is if I call .size(); on an array list, it will take me into the array list class and through all the code required for .size(); However on my desktop it will simply take me to my next piece of code. I do: System.out.println("hello world!"); If i click "Step Into" on that (from my desktop), hello world will appear the console. To contrast that, if I "Step Into" System.out.println("hellow world"); on my laptop, it first pulls up PrintStream.class, then

(Android Studio) How to debug through my code only?

一个人想着一个人 提交于 2019-11-28 03:27:22
When I try to debug through my code in Android (using Step Into, F7 command), the debugger takes me through all system classes, which I do not want. For example, when I place a breakpoint at the 2nd line below (i.e. "startActivity(ourIntent);"), instead of going into my Activity (i.e. "myclass), the execution point goes into Activity.java > Instrumentation.java, etc... all system classes. I dont want that. I only want to step through my code that I have written. What is a way to achieve this? Intent ourIntent = new Intent(MainActivity.this, "com.practice.gamesbook.myclass"); startActivity

Getting rid of “There is no source code available for the current location.”

独自空忆成欢 提交于 2019-11-27 19:37:10
OK, this is my own fault, but I can't seem to rescue myself. Whenever I try to step into a class that has fields with assignments calling into .NET code, I get a dialog box that contains the text "There is no source code available for the current location.": For instance, stepping into the constructor of the following class would give me the above message: public class Test { private Stack<String> _Dummy = new Stack<String>(); public Test() { } } I assume this is because at some point I fiddled with the settings for the symbol server, but no matter what I fiddle with now, I can't seem to get