Breakpoints in functions called by call_user_func_array

Hi,

I'm having an issue with debugging code that is called from wordpress hooks. It doesn't seem to be hitting breakpoints in filters my functions.php file. These are called with call_user_func_array, which I'm guessing the problem is coming from? However, if I step into at the point where that is called i can then step line by line through the function, but again, it wont stop at breakpoints.

Thanks,

Ross

1
6 comments

Are there any inspection errors/warning on call_user_func_array in your project in IDE?

We would need to compare IDE logs & xdebug logs. Could you please open Help | Configure Debug Log Settings and add `com.jetbrains.php.debug` line & restart IDE? Also Xdebug logging would have to be configured: https://intellij-support.jetbrains.com/hc/en-us/articles/206544819-How-to-collect-remote-log-for-XDebug

Try to debug again and send us (upload somewhere) idea.log (File > Show log in ...) & xdebug log file.

0
Avatar
Permanently deleted user

Hello,

I have the same issue. It seems it's an issue with illegal characters sent by Xdebug:

2018-02-20 11:17:14,177 [ 239651]  ERROR - plication.impl.ApplicationImpl - URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "s "
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "s "
    at java.net.URLDecoder.decode(URLDecoder.java:194)
    at com.jetbrains.php.debug.xdebug.dbgp.DbgpUtil.decodeUrl(DbgpUtil.java:280)
    at com.jetbrains.php.debug.xdebug.dbgp.messages.StackGetResponse.deserialize(StackGetResponse.java:25)
    at com.jetbrains.php.debug.xdebug.dbgp.DbgpUtil.parsePacket(DbgpUtil.java:215)
    at com.jetbrains.php.debug.xdebug.dbgp.DbgpUtil.readMessage(DbgpUtil.java:250)
    at com.jetbrains.php.debug.xdebug.connection.XdebugConnection$MyInputReader.read(XdebugConnection.java:117)
    at com.jetbrains.php.debug.xdebug.connection.XdebugConnection$MyInputReader.read(XdebugConnection.java:106)
    at com.jetbrains.php.debug.connection.PhpDebugConnection.lambda$startReading$2(PhpDebugConnection.java:286)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

I can't send the Xdebug log here directly because the code is closed. But I can tell you there is a lot of characters because Xdebug sends the whole closure code ({closure:closure://function).

0

Alan, it would be great if you could submit this to our bugtracker: http://youtrack.jetbrains.com/issues/WI#newissue=yes

You can attach logs privately there (set visibility to jetbrains-team).

0

Have been solved at the end? I have experiencing right now this issue :/

1

Unfortunately, no, the issue is still in the Open state. I've made it available publically.

0

Please sign in to leave a comment.