Burp Suite User Forum

Create new post

Debug Python Extension

Felipe | Last updated: Feb 09, 2021 06:19PM UTC

I was writing a python extension for Burp, all is working fine and I can manage create a working extension that get's installed in Burp. I wanted to go one step further and debug my extension in Visual Studio Code. Although I found some post about debugging Java extensions ([1],[2],[3] and [4]), I did not find any documentation regarding debugging python extensions. Is there any documentation about this? I want to take advantage of the auto-completion features of VSC and debugging capabilities. [1] https://parsiya.net/blog/2019-12-02-developing-and-debugging-java-burp-extensions-with-visual-studio-code/ [2] https://blog.netspi.com/debugging-burp-extensions/ [3] https://www.itsecguy.com/my-first-burp-suite-extension/ [4] https://titanwolf.org/Network/Articles/Article?AID=5844a224-125d-4574-94b2-65da2402b246#gsc.tab=0

Hannah, PortSwigger Agent | Last updated: Feb 15, 2021 04:36PM UTC

Hi I haven't found any information on using VS Code to debug Python extensions within a Java program. However, I have found the following which can be used on the command line to debug Python. You could possibly use this in conjunction with the integrated terminal in VS Code to debug your extension. - https://foote.pub/2015/04/08/burp-extender-python.html

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.