Results 1 to 6 of 6

Thread: Disabling Delphi IDE debugging shortcut keys

  1. #1

    Disabling Delphi IDE debugging shortcut keys

    I'm working on an app right now, which includes a menu with some shortcut keys. One of the shortcut keys is F12 (this *cannot* change, I'm doing an overhaul of an old app and F12 was a very commonly used shortcut. If I change it people will moan for months). However when I debug the app and try using F12 it will stop execution and present the CPU debugger window. When run stand alone this obviously doesn't happen (the key does what it's supposed to do), however for sake of my sanity while debugging is there any way to disable either just the F12 debug key, or if needed all the debugger shortcut keys.

  2. #2

    Disabling Delphi IDE debugging shortcut keys

    I'm a little confused - F12 doesn't do that on my Delphi! It toggles the forms/unit.

    You could try installing GExperts and then use its "IDE Menu Shortcuts" feature. Find the relevant thing and assign it a different shortcut.
    "All paid jobs absorb and degrade the mind."
    <br />-- Aristotle

  3. #3

    Disabling Delphi IDE debugging shortcut keys

    F12 does the toggling while in edit mode, however when you are in debugging mode (after selecting run), if you hit F12 it will pause the program and bring up the CPU window (I've confirmed this with a blank project. After select run if I hit F12 it will stop and show the CPU window, if I hit it again it will toggle, since it is in edit mode).

  4. #4
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Disabling Delphi IDE debugging shortcut keys

    If you go into the Tools menu and select debugging options, then turn off integrated debugging it no longer does this. However it also doesn't allow you to debug anymore No breakpoints watches etc......
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  5. #5

    Disabling Delphi IDE debugging shortcut keys

    Your out of luck.

    The F12 key triggering a breakpoint is a biult in feature of the win 32 debugging subsystem. When ever you have any debugger attached to a process via the win32 debugginDetg API, F12 will always trigger a breakpoint. This is implemented at the kernal level, like Ctl-Alt-Del.

    Add code to detect when a debugger is attached to a process (IsDebuggerPresent), and just remap what F12 does in the application while the debugger is attached.

    Also under windows XP, it is posible to unattach a debugger without killing the debugged process.

  6. #6

    Disabling Delphi IDE debugging shortcut keys

    You'll find the same thing in Visual Studio as well.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •