Working with Delphi 10.2.3 on Windows 10 with 125% scaling (120 dpi). I would like to debug some HighDPI scaling-related issues in my VCL application. The application includes a manifest declaring the app as dpiAware. Running the application from the IDE (with and without debugger), the app runs on virtual 96 dpi and is scaled up by Windows, making the issues I would like to debug to not appear.

Working with Delphi 10.2.3 on Windows 10 with 125% scaling (120 dpi). I would like to debug some HighDPI scaling-related issues in my VCL application. The application includes a manifest declaring the app as dpiAware. Running the application from the IDE (with and without debugger), the app runs on virtual 96 dpi and is scaled up by Windows, making the issues I would like to debug to not appear.

But when I run the application outside the IDE (started by doubleclicking the exe in Explorer), Windows respects the application manifest and let the application scale itself to 125%. But now I can't debug :-(

Any ideas how to solve this?

Comments

  1. The only way I know it's to start the IDE the same way as your app.

    ReplyDelete
  2. If something is unclear I meant: declare the IDE dpiAware

    ReplyDelete
  3. This is definitely not standard. When I start a dpi aware application in the IDE I get dpi scale notifications, which wouldn't appear if the app were not recognized as dpi aware. Did you something to the IDE that could be responsible for that behavior?

    ReplyDelete
  4. I changed IDE dpi mode right clicking on the executable (from explorer contextual menu).
    And now all my apps starts the same way as IDE when I start them from the IDE.

    ReplyDelete
  5. Uwe Raabe Thanks for the hint. I've removed the Windows compatibiliy settings for bds32.exe, and now the scaling works as expected.

    ReplyDelete

Post a Comment