Saturday, February 20, 2010

Using KDevelop for debugging only

As you might know, KDevelop has an integrated gdb debugger. But it a bit difficult to set up the launch configuration, especially when not using KDevelop for coding.
There is now an easy way to run the kdevelop debugger only:
kdevelop --debug gdb executable --args-to-executable

When running that command kdevelop starts, runs the executable and breaks in main. You then can do the usual debugging.


Another thing I implemented is a resizable variable tooltip, with that you can look even at vallules like this one:


8 comments:

  1. Cool. Any chances for attaching to existing process by name or PID?

    ReplyDelete
  2. kdevelop --debug gdb ./sieve --args-to-executable my_file

    kdevelop: Unknown option 'debug'.
    kdevelop: Use --help to get a list of available command line options.

    Am I missing something. I have latest beta Kdevelop 4.

    ReplyDelete
  3. You need tp use the latest SVN head (post latest beta)

    ReplyDelete
  4. @jstaniek:
    That is pretty easy in KDevelop, without having to create launch configurations.
    (See Run menu)

    Would you see a use case where this is not enough?

    ReplyDelete
  5. This is pretty good tool i guess, need to try this out, debugging is very important in any project development, we should debug the errors and fix it, where ever necessary.

    ReplyDelete
  6. This really is certainly Awesome expertise having writing and many
    erectile dysfunction treatment due to yahoo search engine choose up me on here. I cherished studying your content material and added to the book marks. The recommendations you used to position up was clearly understandable. My husband additionally appreciated after studying this post. Let me go through for more earlier.

    ReplyDelete
  7. I really enjoyed this site. This is such a Great resource that you are providing and you give it away for free. It gives in depth information. Thanks for this valuable information.

    ReplyDelete
  8. Nice information, i hope you keep writing.

    ReplyDelete