You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,41 @@ It is important that the design-time assemblies you use (if any) are not loaded
201
201
202
202
That is, an explicit `.nuspec` file will be needed with an explicit `<references>` node (so that only the TPRTC gets added as a reference), see [this example](https://github.com/baronfel/FSharp.Data/blob/e0f133e6e79b4a41365776da51332227dccff9ab/nuget/FSharp.Data.nuspec).
203
203
204
+
### FAQ
204
205
206
+
#### How do I debug execution of a type provider when using .NET Framework tools on Windows?
207
+
208
+
1. Capture output of `msbuild -v:n` in `args.txt` and trim out the rubbish leaving just the command line arguments to the F# compiler, usually starting with `-o:...`
209
+
210
+
2. Run an explicit invocation of the compiler using this, checking that your failures still happen
211
+
212
+
fsc.exe @args.txt
213
+
214
+
Then debug that invocation using
215
+
216
+
devenv /debugexe fsc.exe @args.txt
217
+
218
+
If your failures only happen in the IDE then use `devenv /debugexe devenv.exe MyProj.fsproj`, set debug type to ".NET Framework 4.0" and launch F5. Likewise if your failures only happen in F# Interactive then use `devenv /debugexe fsi.exe MyProj.fsproj`.
219
+
220
+
Set first-catch exception handling (Ctrl-Alt-E, select all CLR exceptions) and set Just My Code off
221
+
222
+
#### How do I debug execution of a type provider when using .NET Core tools on Windows?
223
+
224
+
One approach:
225
+
226
+
1. Capture output of `dotnet build -v:n` in `args.txt` and trim out the rubbish leaving just the command line arguments to the F# compiler, usually starting with `-o:...`
227
+
228
+
2. Run an explicit invocation of the compiler using:
0 commit comments