2016.2 Single-step debugging not moving focus to code window

I just upgraded to 2016.2. My project has two PHPStorm windows open, one with 20+ open editors (call it "Window A") and a second window with a single open editor ("Window B"). I place a breakpoint in Window A, launch debugging and execution stops there. Then I single-step into a function open in Window B. PHPStorm 2016.1 correctly shifted the focus to Window B, where I could continue single-stepping without pause. If I set a breakpoint only in Window B and launched debugging while Window A had the focus, the focus would shift to Window B when the breakpoint there was encountered.

Now, in 2016.2, focus shifting while single-stepping or hitting a breakpoint no longer seems to work. If I manually click on Window B I will see the execution bar and be able to continue single-stepping, but that now requires manual intervention and knowledge of where execution was supposed to stop. I hope this is just a new-version glitch.

0
Avatar
Permanently deleted user

Hello,

Unfortunately I was not able to reproduce this.

Let's say I have two files:

"test1.php":

<?php

function DoSomething()
{
/* reference to Log's sample() function */
require_once('test2.php');
$log = new Log();
$passparam = 'passtext';
$result = $log->sample($passparam);
echo $result;
}

DoSomething();

"test2.php":

<?php

class Log
{
public function sample($message)
{
echo $message . "\n";
return $message;
}
}

File "test1.php" is opened in main PhpStorm window (as Window A), file "test2.php" is opened in a separate editor window (as Window B). Then I place a breakpoint in "test2.php" and debug "test1.php" - it stops in "test2.php" and I can see the lines highlighted and values to evaluate or change.

Is your setup different? Did you check your configuration just to be sure you can debug the same in a single window?

0

请先登录再写评论。