File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/Sentry/PlatformAbstractions Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -38,20 +38,24 @@ internal static SentryRuntime WithAdditionalProperties(this SentryRuntime runtim
3838
3939 internal static SentryRuntime ? Parse ( string ? rawRuntimeDescription , string ? name = null )
4040 {
41+ Console . WriteLine ( $ "{ nameof ( rawRuntimeDescription ) } : { rawRuntimeDescription } , { nameof ( name ) } : { name } ") ;
4142 if ( rawRuntimeDescription == null )
4243 {
44+ Console . WriteLine ( "rawRuntimeDescription is null" ) ;
4345 return name == null ? null : new SentryRuntime ( name ) ;
4446 }
4547
4648 var match = RuntimeParseRegex . Match ( rawRuntimeDescription ) ;
4749 if ( match . Success )
4850 {
51+ Console . WriteLine ( "Regex matched: " + match . Value ) ;
4952 return new SentryRuntime (
5053 name ?? ( match . Groups [ "name" ] . Value == string . Empty ? null : match . Groups [ "name" ] . Value . Trim ( ) ) ,
5154 match . Groups [ "version" ] . Value == string . Empty ? null : match . Groups [ "version" ] . Value . Trim ( ) ,
5255 raw : rawRuntimeDescription ) ;
5356 }
5457
58+ Console . WriteLine ( "No regex match" ) ;
5559 return new SentryRuntime ( name , raw : rawRuntimeDescription ) ;
5660 }
5761
You can’t perform that action at this time.
0 commit comments