[Phpmyadmin-devel] js breakpoints

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

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. -- Thanks and Regards, Madhura Jayaratne

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 ! -- Marc Delisle http://infomarc.info | http://phpmyadmin.net

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 -- Atul Pratap Singh http://blog.atulsisodia.in/

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 Delisle http://infomarc.info | http://phpmyadmin.net

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 -- Atul Pratap Singh http://blog.atulsisodia.in/
participants (3)
-
Atul Pratap Singh
-
Madhura Jayaratne
-
Marc Delisle