mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 20:10:08 +02:00
👌 Re-enable debugger, site loading
This commit is contained in:
@ -42,16 +42,15 @@
|
|||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = ""
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
launchStyle = "0"
|
launchStyle = "0"
|
||||||
useCustomWorkingDirectory = "NO"
|
useCustomWorkingDirectory = "NO"
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
ignoresPersistentStateOnLaunch = "NO"
|
||||||
debugDocumentVersioning = "YES"
|
debugDocumentVersioning = "YES"
|
||||||
debugServiceExtension = "internal"
|
debugServiceExtension = "internal"
|
||||||
enableGPUValidationMode = "1"
|
enableGPUValidationMode = "1"
|
||||||
allowLocationSimulation = "YES"
|
allowLocationSimulation = "YES">
|
||||||
consoleMode = "1">
|
|
||||||
<BuildableProductRunnable
|
<BuildableProductRunnable
|
||||||
runnableDebuggingMode = "0">
|
runnableDebuggingMode = "0">
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
@ -66,7 +65,7 @@
|
|||||||
<EnvironmentVariable
|
<EnvironmentVariable
|
||||||
key = "PHPMON_MARKETING_MODE"
|
key = "PHPMON_MARKETING_MODE"
|
||||||
value = "YES"
|
value = "YES"
|
||||||
isEnabled = "YES">
|
isEnabled = "NO">
|
||||||
</EnvironmentVariable>
|
</EnvironmentVariable>
|
||||||
</EnvironmentVariables>
|
</EnvironmentVariables>
|
||||||
</LaunchAction>
|
</LaunchAction>
|
||||||
|
@ -73,7 +73,7 @@ class ValetSiteScanner: SiteScanner
|
|||||||
.contentsOfDirectory(atPath: path)
|
.contentsOfDirectory(atPath: path)
|
||||||
|
|
||||||
return entries.forEach {
|
return entries.forEach {
|
||||||
if let site = self.resolveSite(path: "\($0)/\(path))") {
|
if let site = self.resolveSite(path: "\(path)/\($0))") {
|
||||||
sites.append(site)
|
sites.append(site)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -91,7 +91,10 @@ class ValetSiteScanner: SiteScanner
|
|||||||
let tld = Valet.shared.config.tld
|
let tld = Valet.shared.config.tld
|
||||||
|
|
||||||
// See if the file is a symlink, if so, resolve it
|
// See if the file is a symlink, if so, resolve it
|
||||||
let attrs = try! FileManager.default.attributesOfItem(atPath: path)
|
guard let attrs = try? FileManager.default.attributesOfItem(atPath: path) else {
|
||||||
|
Log.warn("Could not parse the site: \(path), skipping!")
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// We can also determine whether the thing at the path is a directory, too
|
// We can also determine whether the thing at the path is a directory, too
|
||||||
let type = attrs[FileAttributeKey.type] as! FileAttributeType
|
let type = attrs[FileAttributeKey.type] as! FileAttributeType
|
||||||
|
Reference in New Issue
Block a user