How to debug fphttpclient? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- lainz · 2018-05-12 19:47 Hi, this unit is from FPC, so to debug that I need to recompile FPC, or do something special? What I need to figure is why fphttpclient doesn't get the response from a fiscal printer emulator (localhost), because with wireshark we noticed that the emulator sends the response, but fphttpclient never get's it. ---------------------------------------------------------------------- balazsszekely · 2018-05-12 19:51 You have to rebuild FPC with -g -gl -O- . If you install lazarus with fpcupdeluxe...see attached image. Another solution is to copy the appropriate unit to your project folder. ---------------------------------------------------------------------- lainz · 2018-05-12 19:57 Thanks. Yes, I use fpcupdeluxe. I will try. ---------------------------------------------------------------------- lainz · 2018-05-12 20:50 Well, it went bad  I need to reinstall everything, now I can't compile anymore. "File not open" error. But the good part is that I need to clean only the SVN directories, run fpcupdeluxe, and everything will work again. ---------------------------------------------------------------------- engkin · 2018-05-12 21:35 Quote from: lainz on May 12, 2018, 09:47:20 pmHi, this unit is from FPC, so to debug that I need to recompile FPC, or do something special? Simply copy the folder that includes fphttpclient, add its path to your test project. Debug your project as usual. This should work for debugging TFPHTTPClient class. ---------------------------------------------------------------------- lainz · 2018-05-12 21:39 Thanks. Yes, in fact I found that a recent commit on SVN, a writeln on the IDE, break's the build of projects / rebuild of the IDE. But I've reported that. And well, I will do that better, copy the file / folder as you and getmem suggested, so I don't need to rebuild everything again, to debug fphttpclient.