Visual D bug in paths

Rainer Schuetze r.sagitario at gmx.de
Wed Mar 30 16:52:35 UTC 2022



On 26/03/2022 05:54, Jo Blow wrote:
> On Friday, 25 March 2022 at 09:18:09 UTC, Rainer Schuetze wrote:
>> I guess you are using the visualdproj projects. The "mago debug 
>> engine" that can be selected in the debugging options is a 32-bit 
>> engine only, so it doesn't work in VS 2022 anymore. The "mago 
>> extension" to the Visual Studio debugger is ported to 64-bit and works 
>> with both VS engines adding similar and more functionality.
>>
>> One thing I stumble over from time to time is that the VS project 
>> configuration dialog doesn't always open with the current 
>> configuration, so changes to the settings seem to have no effect.
>>
>> If that doesn't help: what is the exact error message you get?
> 
> The exact error is a dialog that pops up saying:
> 
> "
> cannot launch debugger on
> C:\projects\test\test\Win32\Debug\test.exe
> hr = 800702e4
> "

The error code means "The requested operation requires elevation.". I 
guess that there might be some compatibility concerns regarding the 
windows version built into the executable.

I suspect you are building the programs with the Digital Mars toolchain 
(which uses the OMF object fileformat and the optlink linker). Try 
enabling MS-COFF output on the Compiler->Output project configuration page.


> 
> 
> I thought it worked because I created a test project. It seems it has 
> something specific to do with older projects. I can debug a new project 
> in x86 using mago or visual studio x86 mixed mode.
> 
> But in my older project I cannot get anything to work except for x64 
> debugging but my project uses x86 dlls that I cannot port to x64. I 
> tried creating a new project so it seems like it is something fishy with 
> my code.
> 
> I'm using the requests library and simply drag and drop the folder in to 
> the new project and copy over the code(which is just one file).
> 
> 
> The requests library gives me an error about "errors in imported 
> modules: depreciated ... Usage of the 'body' keyword is depreciated. Use 
> `do` instead."

This is a message from intellisense, not the actual build.

> I can't imagine that causing a problem with the debugger but maybe? It 
> works in x64 mode and the error doesn't stop a build.

I doubt this is an issue.

> 
> ------ Rebuild All started: Project: test, Configuration: Debug Win32 
> ------
> Building Win32\Debug\test.exe...
> ..\..\test\test\requests\pool.d(281): Deprecation: Usage of the `body` 
> keyword is deprecated. Use `do` instead.
> ..\..\test\test\requests\pool.d(370): Deprecation: Usage of the `body` 
> keyword is deprecated. Use `do` instead.
> ..\..\test\test\requests\streams.d(1033): Deprecation: Usage of the 
> `body` keyword is deprecated. Use `do` instead.
>          1 file(s) copied.
> ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
> 
> The copied file is just a post build command that copies the exe.
> 
> Any ideas?
> 


More information about the Digitalmars-d-ide mailing list