https://github.com/mapstermapper/expressiondebugger
Step into debugging and generate readable script from linq expressions
https://github.com/mapstermapper/expressiondebugger
Last synced: about 1 year ago
JSON representation
Step into debugging and generate readable script from linq expressions
- Host: GitHub
- URL: https://github.com/mapstermapper/expressiondebugger
- Owner: MapsterMapper
- License: mit
- Created: 2017-03-08T16:01:55.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T21:11:26.000Z (about 4 years ago)
- Last Synced: 2025-04-20T14:58:43.603Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 78.1 KB
- Stars: 35
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# ExpressionTranslator
Translate from linq expressions to C# code
### Get it
```
PM> Install-Package ExpressionTranslator
```
### Get readable script
You can compile expression into readable script by `ToScript` extension method
```CSharp
var script = lambda.ToScript();
```
# ExpressionDebugger
Step into debugging and generate readable script from linq expressions
### Get it
```
PM> Install-Package ExpressionDebugger
```
### Compile with debug info
`CompileWithDebugInfo` extension method will allow step-into debugging.
```CSharp
var func = lambda.CompileWithDebugInfo();
func(); //<-- you can step-into this function!!
```
### Version 2.0 .NET Core support!
- Version 2.0 now support .NET Core
### Visual Studio for Mac
To step-into debugging, you might need to emit file
```CSharp
var opt = new ExpressionCompilationOptions { EmitFile = true };
var func = lambda.CompileWithDebugInfo(opt);
func(); //<-- you can step-into this function!!
```