Debugging Programs For Windows

Posted on by
Active4 months ago

Jul 14, 2011  The Debug Diagnostic Tool (DebugDiag) is designed to assist in troubleshooting issues such as hangs, slow performance, memory leaks or memory fragmentation, and crashes in any user-mode process. The tool includes additional debugging scripts focused on Internet Information Services (IIS) applications, web data access components, COM+ and COM+ related Microsoft technologies. Debugging Tools for Windows (WinDbg, KD, CDB, NTSD); 3 minutes to read; In this article. Start here for an overview of Debugging Tools for Windows. This tool set includes WinDbg and other debuggers. Install Debugging Tools for Windows. You can get Debugging Tools for Windows as part of a development kit or as a standalone tool set. The Debug programs user right can be exploited to capture sensitive device information from system memory or to access and modify kernel or application structures. Some attack tools exploit this user right to extract hashed passwords and other private security information or to insert malware. Simple Program Debugger is debugging software for windows. It attaches itself to the current running window or creates a new program in debugging mode, while the major debugging events happen while the program is running; these include Create thread, Exit thread, Load DLL Exception, Create process and Unload DLL and debug string. Dec 28, 2017  In the previous article, we told that one of the ways to defending against mimikatz-like utilities is disabling the debug privilege for system administrators using Debug Program policy. However, recently it turned out that without the debug privilege (it is SeDebugPrivilege in Windows), a local server administrator cannot install or update Microsoft SQL Server.

Python for Windows by default comes with IDLE, which is the barest-bones IDE I've ever encountered. For editing files, I'll stick to emacs, thank you very much.

However, I want to run programs in some other shell than the crappy windows command prompt, which can't be widened to more than 80 characters.

The MS Support instructions for Windows 10/Edge are often incorrect. For example, there is no tab available for 'internet options' only 'advanced settings' which does not have the simple tools. Disable script debugging in MS Edge. I often have to return to it. I cannot fathom how programs are released with so many flaws that are thus so.

IDLE lets me run programs in it if I open the file, then hit F5 (to go Run-> Run Module). I would rather like to just 'run' the command, rather than going through the rigmarole of closing the emacs file, loading the IDLE file, etc. A scan of google and the IDLE docs doesn't seem to give much help about using IDLE's shell but not it's IDE.

Any advice from the stack overflow guys? Ideally I'd either like

  • advice on running programs using IDLE's shell

  • advice on other ways to run python programs in windows outside of IDLE or 'cmd'.

Thanks,

/YGA

HostileFork
26.1k7 gold badges81 silver badges138 bronze badges
YGAYGA
3,80712 gold badges35 silver badges44 bronze badges

9 Answers

For an interactive interpreter, nothing beats IPython. It's superb. It's also free and open source. On Windows, you'll want to install the readline library. Instructions for that are on the IPython installation documentation.

Winpdb is my Python debugger of choice. It's free, open source, and cross platform (using wxWidgets for the GUI). I wrote a tutorial on how to use Winpdb to help get people started on using graphical debuggers.

gotgenesgotgenes
23.7k23 gold badges81 silver badges114 bronze badges

You can easily widen the Windows console by doing the following:

  • click the icon for the console window in the upper right
  • select Properties from the menu
  • click the Layout tab
  • change the Window Size > Width to 140

This can also be saved universally by changing the Defaults on the menu.

SoviutSoviut
61.2k37 gold badges150 silver badges218 bronze badges

Year 2017-2019 Answer:

Try Visual Studio Code, it has great support for Pythondebugging, auto completion and more!

See this link for details:https://code.visualstudio.com/docs/languages/python#_debugging

Ray HulhaRay Hulha
7,5754 gold badges34 silver badges40 bronze badges

However, I want to run programs in some other shell than the crappy windows command prompt, which can't be widened to more than 80 characters.

Click on the system box (top-left) in the command prompt and click properties. In the layout tab you can set the width and height of the window and the width and height of the screen buffer. I recommend setting the screen buffer height to 9999 so you can scroll back through a long output.

The DarkThe Dark

I use eclipse with pydev. Eclipse can be sluggish, but I've become attached to integrated svn/cvs, block indent/unindent and run as unittest features. (Also has F5 run)

If your comfortable in emacs though I don't see any reason to make such a major change.

I suggest instead that you replace your 'crappy command prompt' with powershell. It's not as crappy.

(As mentioned by Soviut and The Dark - you can increase the buffer width/window size to more than 80 by title-bar>right-click>Properties>Buffer Width/Window Size edit even in crappy cmd)

monkutmonkut
28.1k20 gold badges92 silver badges133 bronze badges

Wing IDE is awesome. They also have a free version.

user44511user44511
2,6132 gold badges14 silver badges15 bronze badges

I edit my Python programs in EditPlus. I've configured a user tool that allows me to run my program and have its output appear in a frame below my editor window. My configuration will even let you double click on an exception lines in the output to jump directly to the file and line where the error occurred. You can grab the user tool configuration I use from here on the EditPlus wiki.

Perhaps there is similar functionality you can configure that allows you to run your program and display its output in your Emacs editor!?

Simon LieschkeSimon Lieschke
11.2k6 gold badges42 silver badges59 bronze badges

If you ever graduate to vim, you can just run the following command to start the program you're currently editing in an interactive shell:

TriptychTriptych
165k30 gold badges138 silver badges166 bronze badges

I replaced cmd with Cygwin and Poderosa. May be a little overkill though, if the only problem you have with cmd is that it's a pain to resize.

Although you use Emacs instead of Vim, so I guess you're into overkill.. ;-)

ℳ .ℳ .

Not the answer you're looking for? Browse other questions tagged pythonwindowspython-idle or ask your own question.

Debugging in computers is the process of locating and fixing of errors in computer program code or the engineering of a hardware device. A user of a program, who does not have the knowledge of how to fix the problem, can learn enough about the problem so that he will avoid it until it is permanently fixed. The following are debugging software on the market today.

Related:

Dev- C++

Dev-C++ is a free integrated development environment distributed under the GNU for programming. It is written in Delphi programming language. It uses, the MinGW or TDM-GCC 64bit as its compiler. It can also be used in together with Cygwin or from any GCC-based compiler. The project is hosted by SourceForge. Dev-C++ is considered a Windows-only program. There are trials to create a Linux version.

Simple Program Debugger

Simple Program Debugger is debugging software for windows. It attaches itself to the current running window or creates a new program in debugging mode, while the major debugging events happen while the program is running; these include Create thread, Exit thread, Load DLL Exception, Create process and Unload DLL and debug string. Once the debugging are accumulated one can easily export them into comma-delimited or Copy and paste them into Excel using clipboard.

Debugging Tools For Windows 10

GDB: GNU Debugger

It helps you to view what is going on with another program while it executes, or before a computer crashes. It can start the program and show anything that might affect the behavior. It can also make a program stop on certain conditions. It changes things in a program so you can experiment with correcting the issues of one bug as you get aware of another one.

c/XDC

c/XDC programmers move smoothly on XL/C and assembler code in the same program. You can watch XL/C code as it executes, view statement, operand before and the statement execution. You can also display stack frames, arrays variable in real time.

Script Debugger

Windows Debugging Commands

Should i remove foxit phantompdf. With Script Debugger each phrase on script creation is greatly improved. Script Debugger shows you the reference information offer. You can write Script Debugger quickly and easily with its powerful features for creating code. Once script I created you will test it to ensure it is behaving as expected. It also presents you with a view of what is happening when your script is running.

Debugging Tool For Windows Download

DS-5 Debugger

DS-5 Debugger will get to the root of the software bugs all through your development process. It can be used to develop a code on RTL simulator hardware so as to get your product ahead of any competition. Versatility of the debugger will help standardize across the whole team. Your team will benefit from increased collaboration to a uniform user experience.

Charles

Charles is an HTTP proxy/HTTP monitor that will enable a developer to see all HTTP and SSL traffic between their machines. It also includes any request responses and HTTP headers. Charles has also released other versions including those that support for ATS on IOS 9 and crash fixes for the older versions of Mac, OSX among other improvements.

LuaEdit 2010

LuaEdit is a debugger designed for 5.1 or 5.2 version of Lua. It is featured by remote debugging, syntax highlighting, parameter proposition, advance breakpoint management, Function listing, Watches, global and local variable listing, code completion, syntax highlighting locals among others.

How to Install Debugging Software?

Every package is different. The installation process of the software thus depends on the instructions provided by the software vendor, or the software’s instruction as provided on a website.

What You Need to Know About Debugging

It is highly likely that you are going to make mistakes in your software – this is what happens when coding gets complex. Without the aid of a useful tool, it might be difficult to detect errors in your code, much less finding the errors themselves.

Whether you are working for a client or you are doing a project for your company, you must understand that even a single error in your code will affect the normal operation of your software. Debugging your code is, therefore, necessary. Debugging is the only process that can help to find and resolve the defects that can prevent the correct operation of your software.

Free Computer Debugging Programs

Related Posts