in response from debugger?

in response from debugger?

cha59cha59 Posts: 87Questions: 23Answers: 0

First a salute to the Debugger. What an excellent tool. Well done.
Does anyone know what <anonymous> means?

Uncaught ReferenceError: session_start is not defined
at <anonymous>:1:1
(anonym) @ VM73:1

https://www.plearn.it/test/Editor/examples/cha_html/test.php

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,469 Site admin
    Answer ✓

    <anonymous> in this context is an anonymous function.

    Uncaught ReferenceError: session_start is not defined

    I'm not seeing that anywhere on your page? session_start is a PHP function.

    Allan

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Thanks for the kind words. When do you see that message? If I load that page, and paste:

    (function() {
        var url = 'https://debug.datatables.net/bookmarklet/DT_Debug.js';
        if (typeof DT_Debug != 'undefined') {
            if (DT_Debug.instance !== null) {
                DT_Debug.close();
            } else {
                new DT_Debug();
            }
        } else {
            var n = document.createElement('script');
            n.setAttribute('language', 'JavaScript');
            n.setAttribute('src', url + '?rand=' + new Date().getTime());
            document.body.appendChild(n);
        }
    })();
    

    into the browser, the debugger loads as expected.

    Colin

  • cha59cha59 Posts: 87Questions: 23Answers: 0

    Hi Colin and Allan
    So embarrassing. Simply copied the wrong code into the console. No worries. Thanks for your help.
    Best regards
    Claus

Sign In or Register to comment.