Hi,
does someone know how to use [0], now that errors are trapped by the error reporting system? I tried setting to "never send error reports" but I cannot trigger an error in the console.
[0] https://wiki.phpmyadmin.net/pma/JS_Debugging
On Sat, Jan 4, 2014 at 6:46 PM, Marc Delisle marc@infomarc.info wrote:
Hi,
does someone know how to use [0], now that errors are trapped by the error reporting system? I tried setting to "never send error reports" but I cannot trigger an error in the console.
[0] https://wiki.phpmyadmin.net/pma/JS_Debugging
-- Marc Delisle http://infomarc.info | http://phpmyadmin.net
Hi Marc,
A better approach to [0] in Chrome is to insert "debugger;" (without quotes) right before the line you want to set the break point and have developer console opened while the JS is being executed. The execution will break at the "debugger;" point and you can debug there after.
Le 2014-01-04 09:26, Madhura Jayaratne a écrit :
On Sat, Jan 4, 2014 at 6:46 PM, Marc Delisle <marc@infomarc.info mailto:marc@infomarc.info> wrote:
Hi, does someone know how to use [0], now that errors are trapped by the error reporting system? I tried setting to "never send error reports" but I cannot trigger an error in the console. [0] https://wiki.phpmyadmin.net/pma/JS_Debugging -- Marc Delisle http://infomarc.info | http://phpmyadmin.net
Hi Marc,
A better approach to [0] in Chrome is to insert "debugger;" (without quotes) right before the line you want to set the break point and have developer console opened while the JS is being executed. The execution will break at the "debugger;" point and you can debug there after.
Thanks, and it works in Firebug too !
On Sat, Jan 4, 2014 at 6:46 PM, Marc Delisle marc@infomarc.info wrote:
Hi,
does someone know how to use [0], now that errors are trapped by the error reporting system? I tried setting to "never send error reports" but I cannot trigger an error in the console.
Marc, If you are strictly following the example given on the wiki, you will need to attempt renaming in db operations to trigger the error.
Regards
Le 2014-01-04 09:30, Atul Pratap Singh a écrit :
On Sat, Jan 4, 2014 at 6:46 PM, Marc Delisle <marc@infomarc.info mailto:marc@infomarc.info> wrote:
Hi, does someone know how to use [0], now that errors are trapped by the error reporting system? I tried setting to "never send error reports" but I cannot trigger an error in the console.
Marc, If you are strictly following the example given on the wiki, you will need to attempt renaming in db operations to trigger the error.
Atul, I think I'll just update the wiki page, removing the whole "Setting a breakpoint" section and mentionning the debugger statement for Firebug any objections?
On Sat, Jan 4, 2014 at 8:05 PM, Marc Delisle marc@infomarc.info wrote:
Le 2014-01-04 09:30, Atul Pratap Singh a écrit :
On Sat, Jan 4, 2014 at 6:46 PM, Marc Delisle <marc@infomarc.info mailto:marc@infomarc.info> wrote:
Hi, does someone know how to use [0], now that errors are trapped by the error reporting system? I tried setting to "never send error reports" but I cannot trigger an error in the console.
Marc, If you are strictly following the example given on the wiki, you will need to attempt renaming in db operations to trigger the error.
Atul, I think I'll just update the wiki page, removing the whole "Setting a breakpoint" section and mentionning the debugger statement for Firebug any objections?
Marc,
Fine by me, replacing "invalidReference()" with "debugger;" is a better option.
Regards