RobYost Posted February 5, 2017 Share Posted February 5, 2017 I am new to UniGui, just started using the trial. I can debug the program, but I must click run, then run->attach to process. Is there a way to run and get it to attach to a process automatically? Quote Link to comment Share on other sites More sharing options...
BantuKumar Posted February 6, 2017 Share Posted February 6, 2017 I am new to UniGui, just started using the trial. I can debug the program, but I must click run, then run->attach to process. Is there a way to run and get it to attach to a process automatically? Are you using ISAPI dll? Quote Link to comment Share on other sites More sharing options...
RobYost Posted February 6, 2017 Author Share Posted February 6, 2017 Yes, I think that is what I chose when I created the program. Is there a way to turn it to standalone for testing, then switch it to Service or ISAPI when it is ready to deploy? Quote Link to comment Share on other sites More sharing options...
RobYost Posted February 8, 2017 Author Share Posted February 8, 2017 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 Quote Link to comment Share on other sites More sharing options...
RobYost Posted February 10, 2017 Author Share Posted February 10, 2017 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. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 10, 2017 Administrators Share Posted February 10, 2017 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. Quote Link to comment Share on other sites More sharing options...
RobYost Posted February 10, 2017 Author Share Posted February 10, 2017 Thanks, I just figured out that I was clicking the run button which was run without debugging. Sorry for the long useless posts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.