Jump to content

Debugging


RobYost

Recommended Posts

I created a new project and selected 'Stand Alone Server'

 

When I click run, it compiles and starts an executable.

I then have to click Run ...Attach to process

Then it opens the CPU file

And I have to click run (continue)  again.

 

This works fine.  I just wanted to know if this is how everyone debugs

or maybe there is a better way to do this.

 

Thanks

Link to comment
Share on other sites

I have found a more simple way:

 

CTRL-F9 (compile project)

Run->Load Process  (select run at the bottom)

 

This starts the exe and connects the debugger to it.

The added bonus if it is connected to the debugger is that when I close the program it stops the exe, so when I recompile it doesn't say it is in use.

 

Down to just 2 steps.  If anyone knows how to set a shortcut key to the "load process..." that would help.

Link to comment
Share on other sites

  • Administrators

I created a new project and selected 'Stand Alone Server'

 

When I click run, it compiles and starts an executable.

I then have to click Run ...Attach to process

Then it opens the CPU file

And I have to click run (continue)  again.

 

This works fine.  I just wanted to know if this is how everyone debugs

or maybe there is a better way to do this.

 

Thanks

 

You can simply use conventional Delphi debugging tools. You don't need to attach to your process manually. Just start debugging by running your app in debug mode and use normal IDE debug tools.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...