Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mac-cain13/xdebug-helper-for-chrome
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: diego-mathis/xdebug-helper-for-edge
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 10 commits
  • 24 files changed
  • 2 contributors

Commits on Feb 14, 2020

  1. Copy the full SHA
    2e8b38d View commit details
  2. Copy the full SHA
    970e068 View commit details
  3. Copy the full SHA
    da49968 View commit details

Commits on Feb 17, 2020

  1. add privacy_policy.md

    diego-mathis committed Feb 17, 2020
    Copy the full SHA
    dea713a View commit details
  2. add logo

    diego-mathis committed Feb 17, 2020
    Copy the full SHA
    2491b2d View commit details
  3. readme updated

    diego-mathis committed Feb 17, 2020
    Copy the full SHA
    b38ec02 View commit details

Commits on Feb 18, 2020

  1. Copy the full SHA
    f33cee6 View commit details

Commits on Jan 18, 2021

  1. add SameSite=Strict

    diego-mathis committed Jan 18, 2021
    Copy the full SHA
    0876957 View commit details

Commits on Oct 6, 2024

  1. replaced material icons with svgs

    replaced jquery with native
    add dark design
    diego-mathis committed Oct 6, 2024
    Copy the full SHA
    ed99ef2 View commit details
  2. fix dark design

    diego-mathis committed Oct 6, 2024
    Copy the full SHA
    2f70a81 View commit details
33 changes: 17 additions & 16 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
XDebug Helper for Google Chrome
XDebug Helper for Microsoft Edge
===============================

Debugging, profiling and tracing PHP code with [Xdebug](http://xdebug.org/) is very powerful, but enabling
Debugging, profiling and tracing PHP code with [Xdebug](https://xdebug.org/) is very powerful, but enabling
Xdebug with cookies or adding POST/GET variables is way too hard. This extension will help you to enable/disable
debugging, profiling and tracing of your PHP-code easily.

@@ -12,36 +12,37 @@ Alt+Shift+X toggles the debugging state.

How to install this extension?
------------------------------
**Stable version:** Go to the [Google Chrome Web Store](https://chrome.google.com/webstore/detail/eadndfjplgieldjbigjakmdgkmoaaaoc)
and click "Add to Chrome".

**Development version:** [Download the source from GitHub](https://github.com/mac-cain13/xdebug-helper-for-chrome/archive/master.zip)
and [load the extension into Chrome](http://developer.chrome.com/extensions/getstarted.html#unpacked)
yourself!
**Stable version:** Go to the [Microsoft Edge Addons](https://microsoftedge.microsoft.com/addons/detail/ggnngifabofaddiejjeagbaebkejomen)
and click "Get".

How do I contribute?
--------------------
A: [Submit issues and ideas](https://github.com/mac-cain13/xdebug-helper-for-chrome/issues)

A: [Submit issues and ideas](https://github.com/My6UoT9/xdebug-helper-for-edge/issues)
B: [Submit a pull request](https://help.github.com/articles/using-pull-requests)

1. Fork this repo and create a branch
2. Commit and push your changes to your branch
3. When you're happy send us a pull request!

_**Pro-tip:** Make sure to build upon the latest version of the code and keep pull request as small as possible. This makes your pull request easy to merge._
_**Pro-tip:** Make sure to build upon the latest version of the code and keep pull request as small as possible.
This makes your pull request easy to merge._

Cool, but I use Firefox?!
Cool, but I use Chrome / Firefox?!
-------------------------
There is also [Firefox version](https://github.com/BrianGilbert/xdebug-helper-for-firefox) created by BrianGilbert that you could try.
There is also [Firefox version](https://github.com/BrianGilbert/xdebug-helper-for-firefox) created by BrianGilbert.
And the original Extension [Chrome version](https://github.com/mac-cain13/xdebug-helper-for-chrome) created by Mathijs
Kadijk.

License
-------
The code of this project is licensed under the [MIT license](https://raw.github.com/mac-cain13/xdebug-helper-for-chrome/master/source/License)
The code of this project is licensed under the
[MIT license](https://raw.github.com/My6UoT9/xdebug-helper-for-edge/master/source/License)
so you can use it in nearly every project you want to, commercial and non-commercial.

Special thanks
--------------
* [remailednet](http://blog.remailed.net) for creating the original [XDebug Enabler](https://chrome.google.com/webstore/detail/eippbhbeglgcphcjmpjcjinjamabeoln) for Chrome
* [remailednet](https://web.archive.org/web/2012*/http://blog.remailed.net) for creating the original
[XDebug Enabler](https://chrome.google.com/webstore/detail/eippbhbeglgcphcjmpjcjinjamabeoln) for Chrome
* [Guilherme Pim](https://github.com/pimguilherme) for contributing a Manifest v2 version
* [All contributors](https://github.com/mac-cain13/xdebug-helper-for-chrome/graphs/contributors) for taking the time to create a pull request
* [All contributors](https://github.com/mac-cain13/xdebug-helper-for-chrome/graphs/contributors) for taking the time to
create a pull request
8 changes: 8 additions & 0 deletions privacy_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Privacy Policy for Xdebug helper
1. Does this application collect or use your personal information?
Xdebug helper uses your internet connection to download and update the content. This application doesn’t:
- Collect & use any personal information
- Store any personal data
- Share it to third party
2. Contact.
If you have any question about this application, please ope an issue on https://github.com/My6UoT9/xdebug-helper-for-edge/issues
3 changes: 3 additions & 0 deletions source/background.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<html>
<script type="text/javascript" src="background.js"></script>
</html>
48 changes: 14 additions & 34 deletions source/background.js
Original file line number Diff line number Diff line change
@@ -8,11 +8,9 @@ chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab)
}

// Prep some variables
var ideKey = "XDEBUG_ECLIPSE",
match = true,
let ideKey = "XDEBUG_ECLIPSE",
traceTrigger = ideKey,
profileTrigger = ideKey,
domain;
profileTrigger = ideKey;

// Check if localStorage is available and get the settings out of it
if (localStorage)
@@ -57,11 +55,11 @@ chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab)

chrome.commands.onCommand.addListener(function(command)
{
if ('toggle_debug_action' == command)
if ('toggle_debug_action' === command)
{
var ideKey = "XDEBUG_ECLIPSE";
var traceTrigger = ideKey;
var profileTrigger = ideKey;
let ideKey = "XDEBUG_ECLIPSE";
let traceTrigger = ideKey;
let profileTrigger = ideKey;

// Check if localStorage is available and get the settings out of it
if (localStorage)
@@ -86,7 +84,7 @@ chrome.commands.onCommand.addListener(function(command)
chrome.tabs.query({ active: true, windowId: chrome.windows.WINDOW_ID_CURRENT }, function(tabs)
{
// Do nothing when there is no active tab atm
if (tabs.length == 0) {
if (tabs.length === 0) {
return;
}

@@ -125,11 +123,11 @@ chrome.commands.onCommand.addListener(function(command)
}
});

// Will not be called, if popup is disabled, so not needed to wrap this in a if statement
// Will not be called, if popup is disabled, so not needed to wrap this in an if statement
chrome.browserAction.onClicked.addListener((tab) => {
var ideKey = "XDEBUG_ECLIPSE";
var traceTrigger = ideKey;
var profileTrigger = ideKey;
let ideKey = "XDEBUG_ECLIPSE";
let traceTrigger = ideKey;
let profileTrigger = ideKey;

// Check if localStorage is available and get the settings out of it
if (localStorage)
@@ -216,17 +214,17 @@ function updateIcon(status, tabId)
let title = (localStorage.xdebugDisablePopup === '1')
? 'Debugging disabled' : 'Debugging, profiling & tracing disabled';

if (status == 1)
if (status === 1)
{
title = "Debugging enabled";
image = "images/bug.png";
}
else if (status == 2)
else if (status === 2)
{
title = "Profiling enabled";
image = "images/clock.png";
}
else if (status == 3)
else if (status === 3)
{
title = "Tracing enabled";
image = "images/script.png";
@@ -245,24 +243,6 @@ function updateIcon(status, tabId)
});
}

/**
* @deprecated
* @todo to remove silver
*/
function isValueInArray(arr, val)
{
for (i = 0; i < arr.length; i++)
{
var re = new RegExp(arr[i], "gi");
if (re.test(val))
{
return true;
}
}

return false;
}

// Disable / Enable Popup by localStorage
if (localStorage.xdebugDisablePopup === '1') {
chrome.browserAction.setPopup({
Loading