Git Product home page Git Product logo

Comments (12)

ioncodes avatar ioncodes commented on June 30, 2024

To break in the code make sure to call breakpoint before you attempt to break on VS Code's "dots". https://github.com/ioncodes/idacode#debugging

from idacode.

ioncodes avatar ioncodes commented on June 30, 2024

I'll close this for now, if there's still an issue feel free to reopen the issue!

from idacode.

puppywang avatar puppywang commented on June 30, 2024

To break in the code make sure to call breakpoint before you attempt to break on VS Code's "dots". https://github.com/ioncodes/idacode#debugging

@ioncodes I did add breakpoint first, and then create dot breakpoint on VSC, but those breakpoint turn gray immediately, I found that I can set breakpoint outside call to execfile, but not the code inside execfile. I am using python 2.7 shipped with IDA 7.0, I attach the debugpy log, thanks.

debugpy.server-34804.log
debugpy.adapter-44868.log

from idacode.

ioncodes avatar ioncodes commented on June 30, 2024

Are you debugging an IDA plugin? Can you show me parts of the source code?

from idacode.

ioncodes avatar ioncodes commented on June 30, 2024

From the adapter logs:

             Client[1] <-- {
                 "seq": 6, 
                 "type": "response", 
                 "request_seq": 3, 
                 "success": true, 
                 "command": "setBreakpoints", 
                 "body": {
                     "breakpoints": [
                         {
                             "source": {
                                 "path": "D:\\idacode\\objc2_xrefs_helper.py", 
                                 "name": "d:\\idacode\\objc2_xrefs_helper.py", 
                                 "sourceReference": 1
                             }, 
                             "message": "Breakpoint in file that does not exist.", 
                             "verified": false, 
                             "line": 568
                         }
                     ]
                 }
             }

Is the path in that JSON correct?

from idacode.

puppywang avatar puppywang commented on June 30, 2024

I just create a directory named idacode, not debug plugin code, here is the files in that directory, please check.

idacode.zip

Yes, I can confirm that the directory is correct on windows, thanks.

from idacode.

ioncodes avatar ioncodes commented on June 30, 2024

I just tried this on IDA 7.5 with Python 3, where did you put the "breakpoint" line?

image

from idacode.

puppywang avatar puppywang commented on June 30, 2024

I put the same line as yours, but it is not working, maybe something todo with python version? I use python2.7 shipped with IDA 7.0.

from idacode.

ioncodes avatar ioncodes commented on June 30, 2024

It may indeed be an issue with Python 2.7 and IDA 7.0. I'll check whether it works for me on that version.

from idacode.

ioncodes avatar ioncodes commented on June 30, 2024

How did you load the plugin in that version of IDA? I placed the files in the plugin directory but it isn't being loaded.

from idacode.

puppywang avatar puppywang commented on June 30, 2024

Place it in plugin folder, and change some code due to python 2.7 don't have asyncio. You can find the change here: https://github.com/ioncodes/idacode/pull/13/files/0319005853db6e2b126fd0b731abdf8380f438ae

from idacode.

wallds avatar wallds commented on June 30, 2024

Same to me, Python 3.8.10 and IDA 7.5.

Screenshot 2021-11-09 105853

from idacode.

Related Issues (20)

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.