GithubHelp home page GithubHelp logo

timwi / stepil Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 304 KB

StepIL allows you to step through the compiled IL (Intermediate Language; the .NET opcodes) of your project using Visual Studio’s debugger. (Normally you can only step through the C# code or the jitted machine code.)

C# 100.00%

stepil's Introduction

Instructions

  • Compile your program normally using Visual Studio. This will create a compiled binary (.exe or .dll) and a symbol file (.pdb).

  • Run StepIL and pass it the compiled binary on the command-line. For example:

      StepIL.exe MyProgram.exe
    

    This command will overwrite the .pdb file with a new one, and it will also create a .il file (in the same directory) containing all the IL code from your binary.

  • Hit F10 in Visual Studio to start debugging your program. If it prompts you for the .il file, browse to it.

  • You will now step through the IL code. You can use Step Over (F10), Step Into (F11), Run to Cursor, everything. All the normal debugging mechanisms (Locals, Watch, Call stack, etc.) should work.

  • If your code calls code in another assembly (usually a library) whose source is also in your project’s solution, the debugger will jump into C# code when you Step Into (F11) the library code. You can run StepIL separately on any assembly for which you wish to step through IL instead of C#.

  • If you need to go back from stepping through IL to stepping through C# code normally, just recompile the project. If you wish to step through IL all the time, you will have to run StepIL every time after compiling. You could, if you were so inclined, set it up as a “Post-build event” in the Build Events tabs of the project’s properties.

stepil's People

Contributors

timwi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.