debuging on xampp on the mac

Hi,

when i debug my zend project it start the browser and make it no halt on code. on the debug log only

2011-04-15 11:34:50,337 [ 238905]   INFO - hp.connection.ServerConnection - StartingXDebug on port 9000
2011-04-15 11:36:32,985 [ 341553]   INFO - hp.connection.ServerConnection - Stopping XDebug on port 9000



my version is 2.01 on mac

in the debug window  on variables show "waitung for incoming connection with ide key........"

pls help me

i can't find in my php.ini a zend optimizer entry
7 comments
Comment actions Permalink

Hello Stefan,

Please follow this instruction - Zend Debugger installation guide
Check your installation and report here if everything is correct, but debugger still doesn't work.

Thank you for feedback!

0
Comment actions Permalink

thanks, with the zend_debugger. but, how can i debug javascript. ??

0
Comment actions Permalink

the url is not valid message apair http:///

the configurations dialog is very absurd.

can you write me step by step, what must i do, for debuging javascript.

i have a local xampp on os/x

i have a project dir
and a webroot dir

0
Comment actions Permalink

Stefan,

the configurations dialog is very absurd.


Please describe what is absurd exactly and we will try improve the dialog.

Please describe what is absurd exactly and we will try improve the dialog.

Consider the following dummy server:

server document root = 'C:\Users\Nikolay.Matveev\Test\phpstorm\server1\htdocs'
web root = 'http://server1/'

The content of index.html is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <script type="text/javascript">
        function foo() {
            var a = 1;//breakpoint here
        }
    </script>
</head>
<body>
<a href="/" onclick="foo();">Click me</a>
</body>
</html>

index.png

You need to set up a new JavaScript remote debug configuration. Debuging is allowed using Firefox and Chrome(other browsers are not supported yet).

index_on_server_run_configuration.png

Execute debug configuration

execute_debug_configuration.png

Stop at the breakpoint

reaching_breakpoint.png

stop_at_breakpoint.png

Hope it will help you. Please ask if anything still unclear.

Thank you for feedback!

0
Comment actions Permalink

Hi Nikolay,

thank you for the info. But, i have a Zend-Projekt and my Javascript is in a *.js file, not in html file.

how can i debug this. absurd was the wrong choice of worth, how i write, me english is very bad.

0
Comment actions Permalink

Hello Stefan,

Sorry for delay.

Do you still have the issue?

But, i have a Zend-Projekt and my Javascript is in a *.js file, not in html file.

The workflow is absolutely the same. Set breakpoint in the javascipt file and execute debug configuration.
An important thing - you should configure web mapping for the script.
javascript_remote_debug_url_mapping.png

Thank you for feedback!

0

Please sign in to leave a comment.