Auto close debug session

Answered

When debugging a pure actionscript project in Idea, is it possible to set the program to automatically close all previous debug tabs when the debug button is pressed again? I'm not sure if this makes sense.

For instance, say that I click the green debug button. Then the browser opens up and tests my application. Next I quickly make a change and want to quickly debug again. For each change I have to right click the name of my project on the debug tab and select  'close tab'. Then, yet another windows pops up asking me if I want to disconnect from the process 'project-as3' with a checkmark to terminate the process.

I understand the utility of this, but I'm wondering if there is a way to set it so that if I click the debug button again, it closes the previous debug session and disconnects automatically. I do a lot of consecutive tests and it becomes very cumbersome closing 10 browser windows and 10 debug tabs when I am trying to work quickly. Thanks!

0
4 comments

Try the "Single instance only"  checkbox in the run/debug configuration.

1
Avatar
Permanently deleted user

Ah, excellent Serge, thanks. That is very helpful! Now if I could figure out how to make it replace the previous browser window instance as well. It opens a new tab each time. 

This saves me a ton of time, though!

 

 

0

Closing a browser tab is not possible without the tight integration with the browser like an extension. We do it for certain JavaScript run/debug configuration types via the JetBrains Browser Extension which provides live reload and other cool features. But I don't think it would be helpful for your project type.

You can try using some third-party extension which doesn't allow opening the duplicate tab with the same URL. Maybe something like Close Duplicate Tab extension will be of use?

1
Avatar
Permanently deleted user

hmm, good idea, let me give that a try! I have been playing around with the single instance box ticked and that has been helping quite a lot, though. Thanks again.

0

Please sign in to leave a comment.