NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Remote Debugging w/encoded PHP files
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
Hi,

Just a quick question: is there some special options to use the remote debugging with encoded files ?

'Cause I encoded PHP files (with option "Preserve extended info for debugging/profiling), uploaded them on a remote server.
Then, when I want to debug a remote file, PhpEd fails to map the encoded file with the local file (since it does not decode the file before comparing them).
Still the debugging seems to work (I can see the variables) but I can't follow the code since it appears encrypted.

What should I do ??

Thanks a lot in advance, I'm sure you'll find a way to help me !
View user's profileFind all posts by medifirstSend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
There is nothing special about the mapping of encoded files - the rules are the same and if the mapping is correct it should just work. Did you use dbg-wizard for mapping by any chance? Many thanks!
View user's profileFind all posts by yfaktorSend private message
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
Well, it's really strange then, because, for the same project, when I try debugging non-encoded files, the mapping works well and I can debug the page without any problem.
But for an encoded page, a window comes up with a transliteration issue (of course because PhpEd tries to debug the encoded file without decoding it).

I tried to add the phpExpress module in my local PHP (I checked that it was taken into account with phpinfo), but it still doesn't work.

Can u help me ? Do you have an idea of the problem ?

Thanks a lot in advance ! Remote debugging is a real huge idea, which saves me a lot of time...
View user's profileFind all posts by medifirstSend private message
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
For the record:
I'm using PhpEd 5.025 / PHP 5.2
Local machine is Windows
Remote server is Linux

A few precisions that may help you:
When phpEd show the window with the transliteration issue, I click 'cancel', then another window called 'Loads xxx' with the filename appears.
Then I have to click again on 'cancel' because PhpEd window get stucked in the middle of the progression and finally I have a new tab with '[unmapped remote file] xxx' with the ENCODED file content...
View user's profileFind all posts by medifirstSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
There is no way to decode sources. The file contains bytecodes and only bytecodes known to php. It's like EXE file that contains only bytecodes known to CPU (pentium for example) and you can never get the original source from the exe.
If during debug session IDE can't find local sources, it ask the debugger for the remote one and gets encoded content.
PLEASE CHECK THE MAPPING SETTINGS. There are no other sources for the problem your experienced.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 22 Feb 2006
Posts: 106
Reply with quote
Sorry, Dmitri, you were right (as always) !! It was a problem with the mapping settings.

I thought the mapping was good, since when I worked with a non-encoded file I saw the source code, but actually I didn't notice that it was the remote source file that I was seeing and not the local one.

My mistake was the 'run mode' option wich was set to local web server and not 3d party WEB server...

Sorry again for the trouble.
View user's profileFind all posts by medifirstSend private message
[resolved] Remote Debugging w/encoded PHP files
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic