Skip to content

[Bug]: debug and memory map #54

@Menyiques

Description

@Menyiques

Contact Details

@Menyiques

IDE version

1.6.0-Beta 5

What happened?

The debugger does not work if you add the -M option to generate a memory map in “Custom compiler parameters.” An exception occurs during compilation: "Exception: Could not find file".
Removing the -M option the debugger works again.
The -M option works well when running normally without a debug session.

Error and Warning messages

Exception: Could not find file 'C:\Users\User\ZX\Tests\sprites compilados\MEMORY_MAP'.    at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.File.ReadAllText(String path, Encoding encoding)
   at ZXBasicStudio.BuildSystem.ZXMemoryMap..ctor(String MapFile, IEnumerable`1 Files) in /home/runner/work/ZXBasicStudio/ZXBasicStudio/ZXBStudio/BuildSystem/ZXMemoryMap.cs:line 21
   at ZXBasicStudio.BuildSystem.ZXProjectBuilder.BuildDebug(TextWriter OutputLogWritter) in /home/runner/work/ZXBasicStudio/ZXBasicStudio/ZXBStudio/BuildSystem/ZXProjectBuilder.cs:line 432

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions