martomo / SublimeTextXdebug

Xdebug debugger client for Sublime Text
MIT License
564 stars 89 forks source link

How do I get launch the current page in my browser? #165

Open entheologist opened 7 years ago

entheologist commented 7 years ago

Heres what I have in my project file: ` { "folders": [ { "path": ".", "follow_symlinks": true, }, { "path": "test", "follow_symlinks": true, }, { "path": "wp-content\plugins\genomics", "follow_symlinks": true, }, { "path": "wp-content\plugins\decodify-members", "follow_symlinks": true, }, { "path": "wp-content\plugins\decodify-terminology", "follow_symlinks": true, }, { "path": "wp-content\themes\decodify", "follow_symlinks": true, } ],

"settings":
{
    "xdebug":
    {
        "url": "localhost/nutri"
    },
    "sublime-view-in-browser": {
         "baseUrl": "http://localhost/nutri",
         "basePath": "C:\\wamp\\www\\nutri"
    }
}

}

`and it seems that when I start the debugger and launch the browser at the same time, th e page that comes up is always what I have in the URL variable, so in this case its always localhost/nutri. I need to be able to debug many different pages throughout my site. Is there a way I can add variables into the configuration files? In the XDebug settings file, there appear these fields:

` "path_mapping": {

},

// Determine which URL to launch in the default web browser
// when starting/stopping a session.
"url": "",

but that URL field doesn't actually do anything from what I can see. `Is there a way I can do something like

"url": "localhost/nutri/{$page}" ?